Use recommended extern import method for cython

This commit is contained in:
Steven Silvester
2014-10-30 20:43:16 -05:00
parent 59e2badb8f
commit 86fdbf460f
2 changed files with 12 additions and 10 deletions
+6 -5
View File
@@ -1,8 +1,9 @@
cdef extern void unwrap2D(double* wrapped_image,
double* unwrapped_image,
unsigned char* input_mask,
int image_width, int image_height,
int wrap_around_x, int wrap_around_y)
cdef extern from *:
void unwrap2D(double* wrapped_image,
double* unwrapped_image,
unsigned char* input_mask,
int image_width, int image_height,
int wrap_around_x, int wrap_around_y)
def unwrap_2d(double[:, ::1] image,
unsigned char[:, ::1] mask,
+6 -5
View File
@@ -1,8 +1,9 @@
cdef extern void unwrap3D(double* wrapped_volume,
double* unwrapped_volume,
unsigned char* input_mask,
int image_width, int image_height, int volume_depth,
int wrap_around_x, int wrap_around_y, int wrap_around_z)
cdef extern from *:
void unwrap3D(double* wrapped_volume,
double* unwrapped_volume,
unsigned char* input_mask,
int image_width, int image_height, int volume_depth,
int wrap_around_x, int wrap_around_y, int wrap_around_z)
def unwrap_3d(double[:, :, ::1] image,
unsigned char[:, :, ::1] mask,