Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
a8dc28ad
Commit
a8dc28ad
authored
May 21, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed code not compiling in gcc 4.8
parent
a3ca78de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
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
using
pt
=
std
::
pair
<
basic_pixel_type
,
point
>
;
// 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.
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
;
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