Commit dca50d67 authored by Davis King's avatar Davis King

Changed the default behavior of heatmap() and jet() to use min(mat(img)) as the

lower bound instead of 0 for the case where you don't give any bounds at all.
parent f2a11f0e
...@@ -134,7 +134,7 @@ namespace dlib ...@@ -134,7 +134,7 @@ namespace dlib
) )
{ {
typedef op_heatmap<image_type> op; typedef op_heatmap<image_type> op;
return matrix_op<op>(op(img,max(mat(img)),0)); return matrix_op<op>(op(img,max(mat(img)),min(mat(img))));
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
...@@ -230,7 +230,7 @@ namespace dlib ...@@ -230,7 +230,7 @@ namespace dlib
) )
{ {
typedef op_jet<image_type> op; typedef op_jet<image_type> op;
return matrix_op<op>(op(img,max(mat(img)),0)); return matrix_op<op>(op(img,max(mat(img)),min(mat(img))));
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -69,7 +69,7 @@ namespace dlib ...@@ -69,7 +69,7 @@ namespace dlib
- image_type is an implementation of array2d/array2d_kernel_abstract.h - image_type is an implementation of array2d/array2d_kernel_abstract.h
- pixel_traits<image_type::type> must be defined - pixel_traits<image_type::type> must be defined
ensures ensures
- returns heatmap(img, max(mat(img)), 0) - returns heatmap(img, max(mat(img)), min(mat(img)))
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
...@@ -109,7 +109,7 @@ namespace dlib ...@@ -109,7 +109,7 @@ namespace dlib
- image_type is an implementation of array2d/array2d_kernel_abstract.h - image_type is an implementation of array2d/array2d_kernel_abstract.h
- pixel_traits<image_type::type> must be defined - pixel_traits<image_type::type> must be defined
ensures ensures
- returns jet(img, max(mat(img)), 0) - returns jet(img, max(mat(img)), min(mat(img)))
!*/ !*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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