mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 11:44:53 +08:00
Use recommended extern import method for cython
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user