Made hysteresis_threshold() return a uint8 image so it's consistent with

threshold_image().
This commit is contained in:
Davis King 2018-06-20 18:23:37 -04:00
parent 3aad318e90
commit d2efb68931
1 changed files with 4 additions and 4 deletions

View File

@ -580,23 +580,23 @@ std::vector<point> py_find_peaks2 (
// ----------------------------------------------------------------------------------------
template <typename T>
numpy_image<T> py_hysteresis_threshold (
numpy_image<unsigned char> py_hysteresis_threshold (
const numpy_image<T>& img,
T lower_thresh,
T upper_thresh
)
{
numpy_image<T> out;
numpy_image<unsigned char> out;
hysteresis_threshold(img, out, lower_thresh, upper_thresh);
return out;
}
template <typename T>
numpy_image<T> py_hysteresis_threshold2 (
numpy_image<unsigned char> py_hysteresis_threshold2 (
const numpy_image<T>& img
)
{
numpy_image<T> out;
numpy_image<unsigned char> out;
hysteresis_threshold(img, out);
return out;
}