Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
346ec3b3
Commit
346ec3b3
authored
Jul 04, 2012
by
Davis King
Browse files
Made auto_threshold_image() always use 64bit integers for part of its counting
to make it robust to very large images.
parent
c1edd2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/image_transforms/thresholding.h
dlib/image_transforms/thresholding.h
+4
-4
No files found.
dlib/image_transforms/thresholding.h
View file @
346ec3b3
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment