mirror of https://github.com/davisking/dlib.git
Made hysteresis_threshold() return a uint8 image so it's consistent with
threshold_image().
This commit is contained in:
parent
3aad318e90
commit
d2efb68931
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue