github上找到的如下:
def _otsu(dtype_t[:, ::1] image,
char[:, ::1] footprint,
char[:, ::1] mask,
dtype_t_out[:, :, ::1] out,
signed char shift_x, signed char shift_y, Py_ssize_t n_bins):
_core(_kernel_otsu[dtype_t_out, dtype_t], image, footprint, mask, out,
shift_x, shift_y, 0, 0, 0, 0, n_bins)