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

to make it robust to very large images.
This commit is contained in:
Davis King 2012-07-04 14:40:04 -04:00
parent c1edd2d2ae
commit 346ec3b3e9
1 changed files with 4 additions and 4 deletions

View File

@ -131,10 +131,10 @@ namespace dlib
moved_a = false;
moved_b = false;
long a_hits = 0;
long b_hits = 0;
long a_mass = 0;
long b_mass = 0;
int64 a_hits = 0;
int64 b_hits = 0;
int64 a_mass = 0;
int64 b_mass = 0;
for (long i = 0; i < hist.size(); ++i)
{