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
2021d6ed
Commit
2021d6ed
authored
Mar 01, 2013
by
Davis King
Browse files
Another cast to avoid a compiler warning
parent
7bc2c97c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/image_transforms/segment_image.h
dlib/image_transforms/segment_image.h
+2
-2
No files found.
dlib/image_transforms/segment_image.h
View file @
2021d6ed
...
...
@@ -372,8 +372,8 @@ namespace dlib
if
(
set1
!=
set2
)
{
const
diff_type
diff
=
sorted_edges
[
i
].
diff
;
const
diff_type
tau1
=
k
/
data
[
set1
].
component_size
;
const
diff_type
tau2
=
k
/
data
[
set2
].
component_size
;
const
diff_type
tau1
=
static_cast
<
diff_type
>
(
k
/
data
[
set1
].
component_size
)
;
const
diff_type
tau2
=
static_cast
<
diff_type
>
(
k
/
data
[
set2
].
component_size
)
;
const
diff_type
mint
=
std
::
min
(
data
[
set1
].
internal_diff
+
tau1
,
data
[
set2
].
internal_diff
+
tau2
);
...
...
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