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
a8dc28ad
Commit
a8dc28ad
authored
May 20, 2018
by
Davis King
Browse files
Fixed code not compiling in gcc 4.8
parent
a3ca78de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/image_processing/scan_image.h
dlib/image_processing/scan_image.h
+1
-1
No files found.
dlib/image_processing/scan_image.h
View file @
a8dc28ad
...
@@ -285,7 +285,7 @@ namespace dlib
...
@@ -285,7 +285,7 @@ namespace dlib
using
pt
=
std
::
pair
<
basic_pixel_type
,
point
>
;
using
pt
=
std
::
pair
<
basic_pixel_type
,
point
>
;
// First sort the peaks so the strongest peaks come first. We will greedily accept
// First sort the peaks so the strongest peaks come first. We will greedily accept
// them and then do the normal peak sorting/non-max suppression thing.
// them and then do the normal peak sorting/non-max suppression thing.
std
::
sort
(
peaks
.
rbegin
(),
peaks
.
rend
(),
[](
pt
&
a
,
pt
&
b
){
return
a
.
first
<
b
.
first
;
});
std
::
sort
(
peaks
.
rbegin
(),
peaks
.
rend
(),
[](
const
pt
&
a
,
const
pt
&
b
){
return
a
.
first
<
b
.
first
;
});
std
::
vector
<
point
>
final_peaks
;
std
::
vector
<
point
>
final_peaks
;
const
double
radius_sqr
=
non_max_suppression_radius
*
non_max_suppression_radius
;
const
double
radius_sqr
=
non_max_suppression_radius
*
non_max_suppression_radius
;
...
...
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