From d2efb6893140e0a038c06c2f157f099f1317a975 Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 20 Jun 2018 18:23:37 -0400 Subject: [PATCH] Made hysteresis_threshold() return a uint8 image so it's consistent with threshold_image(). --- tools/python/src/image.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/python/src/image.cpp b/tools/python/src/image.cpp index 261c3e2d0..f6d3be6c9 100644 --- a/tools/python/src/image.cpp +++ b/tools/python/src/image.cpp @@ -580,23 +580,23 @@ std::vector py_find_peaks2 ( // ---------------------------------------------------------------------------------------- template -numpy_image py_hysteresis_threshold ( +numpy_image py_hysteresis_threshold ( const numpy_image& img, T lower_thresh, T upper_thresh ) { - numpy_image out; + numpy_image out; hysteresis_threshold(img, out, lower_thresh, upper_thresh); return out; } template -numpy_image py_hysteresis_threshold2 ( +numpy_image py_hysteresis_threshold2 ( const numpy_image& img ) { - numpy_image out; + numpy_image out; hysteresis_threshold(img, out); return out; }