mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-03 13:11:25 +08:00
12 lines
516 B
Cython
12 lines
516 B
Cython
cimport numpy as np
|
|
|
|
#---------------------------------------------------------------------------
|
|
# 16 bit core kernel receives extra information about data bitdepth
|
|
#---------------------------------------------------------------------------
|
|
|
|
cdef inline _core16(np.uint16_t kernel(int*, float, np.uint16_t, int ,int,int ),
|
|
np.ndarray[np.uint16_t, ndim=2] image,
|
|
np.ndarray[np.uint8_t, ndim=2] selem,
|
|
np.ndarray[np.uint8_t, ndim=2] mask,
|
|
np.ndarray[np.uint16_t, ndim=2] out,
|
|
char shift_x, char shift_y,int bitdepth) |