Files
scikit-image/skimage/exposure/_unwrap_2d.pyx
T
2013-11-22 10:42:29 +01:00

17 lines
602 B
Cython

cdef extern void unwrap2D(float* wrapped_image,
float* unwrapped_image,
unsigned char* input_mask,
int image_width, int image_height,
int wrap_around_x, int wrap_around_y)
def unwrap_2d(float[:, ::1] image,
unsigned char[:, ::1] mask,
float[:, ::1] unwrapped_image,
wrap_around):
unwrap2D(&image[0, 0],
&unwrapped_image[0, 0],
&mask[0, 0],
image.shape[1], image.shape[0],
wrap_around[1], wrap_around[0],
)