Commit 4d5c77ca authored by Davis King's avatar Davis King

merged

parents 29b5b286 3d62b85c
......@@ -12,7 +12,7 @@ If you aren't reporting a bug or problem with dlib then delete this template and
<!-- ================================================================ -->
<!-- Delete the above instructions and then provide a general summary of the issue in the Title above -->
<!-- Delete the above instructions and then provide a general summary of the issue in the Title above. Then fill out the template below. -->
## Expected Behavior
<!--- Tell us what should happen. What were you doing? What part of dlib are you using? What do you think should happen? -->
......
......@@ -145,7 +145,7 @@ namespace dlib
)
{
typedef op_heatmap<image_type> op;
if (img.size() != 0)
if (num_columns(img) * num_rows(img) != 0)
return matrix_op<op>(op(img,max(mat(img)),min(mat(img))));
else
return matrix_op<op>(op(img,0,0));
......@@ -255,7 +255,7 @@ namespace dlib
)
{
typedef op_jet<image_type> op;
if (img.size() != 0)
if (num_columns(img) * num_rows(img) != 0)
return matrix_op<op>(op(img,max(mat(img)),min(mat(img))));
else
return matrix_op<op>(op(img,0,0));
......
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