Commit 346ec3b3 authored by Davis King's avatar Davis King

Made auto_threshold_image() always use 64bit integers for part of its counting

to make it robust to very large images.
parent c1edd2d2
...@@ -131,10 +131,10 @@ namespace dlib ...@@ -131,10 +131,10 @@ namespace dlib
moved_a = false; moved_a = false;
moved_b = false; moved_b = false;
long a_hits = 0; int64 a_hits = 0;
long b_hits = 0; int64 b_hits = 0;
long a_mass = 0; int64 a_mass = 0;
long b_mass = 0; int64 b_mass = 0;
for (long i = 0; i < hist.size(); ++i) for (long i = 0; i < hist.size(); ++i)
{ {
......
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