Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomsaraiva committed Jan 23, 2024
2 parents dec39fb + 28aa023 commit fe85e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ c_function_names = [('_c_interpolation_lanczos.c','_c_lanczos_kernel'),('_c_inte

headers, functions = extract_batch_code(c_function_names)

defines = [('TAPS',4),('HALF_TAPS',2)]
defines = [('TAPS',4),('HALF_TAPS',2),('M_PI','3.14159265359f')]

%>

Expand Down
1 change: 1 addition & 0 deletions src/nanopyx/core/transform/_le_interpolation_lanczos_.cl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ float _c_interpolate(__global float *image, float r, float c, int rows, int cols

#define TAPS 4
#define HALF_TAPS 2
#define M_PI 3.14159265359f

double _c_lanczos_kernel(double v) {
if (v == 0) {
Expand Down

0 comments on commit fe85e06

Please sign in to comment.