Commit d2efb689 authored by Davis King's avatar Davis King

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

threshold_image().
parent 3aad318e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment