Add missing p1 parameter to percentile and threshold functions

This commit is contained in:
Johannes Schönberger
2013-07-31 19:12:44 +02:00
parent bb4a8aff26
commit 5c5c67027e
+4 -2
View File
@@ -268,7 +268,8 @@ def _percentile(dtype_t[:, ::1] image,
char[:, ::1] selem,
char[:, ::1] mask,
dtype_t_out[:, ::1] out,
char shift_x, char shift_y, double p0, Py_ssize_t max_bin):
char shift_x, char shift_y, double p0, double p1,
Py_ssize_t max_bin):
_core(_kernel_percentile[dtype_t], image, selem, mask, out,
shift_x, shift_y, p0, 1, 0, 0, max_bin)
@@ -289,7 +290,8 @@ def _threshold(dtype_t[:, ::1] image,
char[:, ::1] selem,
char[:, ::1] mask,
dtype_t_out[:, ::1] out,
char shift_x, char shift_y, double p0, Py_ssize_t max_bin):
char shift_x, char shift_y, double p0, double p1,
Py_ssize_t max_bin):
_core(_kernel_threshold[dtype_t], image, selem, mask, out,
shift_x, shift_y, p0, 1, 0, 0, max_bin)