mirror of https://github.com/davisking/dlib.git
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:
parent
c1edd2d2ae
commit
346ec3b3e9
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue