Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
3b1803f6
Commit
3b1803f6
authored
8 years ago
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6989 from mself:gftt-deterministic-sort
parents
f96b5652
72672c29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
featureselect.cpp
modules/imgproc/src/featureselect.cpp
+4
-2
No files found.
modules/imgproc/src/featureselect.cpp
View file @
3b1803f6
...
...
@@ -54,7 +54,8 @@ struct greaterThanPtr :
public
std
::
binary_function
<
const
float
*
,
const
float
*
,
bool
>
{
bool
operator
()
(
const
float
*
a
,
const
float
*
b
)
const
{
return
*
a
>
*
b
;
}
// Ensure a fully deterministic result of the sort
{
return
(
*
a
>
*
b
)
?
true
:
(
*
a
<
*
b
)
?
false
:
(
a
>
b
);
}
};
#ifdef HAVE_OPENCL
...
...
@@ -66,7 +67,8 @@ struct Corner
short
x
;
bool
operator
<
(
const
Corner
&
c
)
const
{
return
val
>
c
.
val
;
}
// Ensure a fully deterministic result of the sort
{
return
(
val
>
c
.
val
)
?
true
:
(
val
<
c
.
val
)
?
false
:
(
y
>
c
.
y
)
?
true
:
(
y
<
c
.
y
)
?
false
:
(
x
>
c
.
x
);
}
};
static
bool
ocl_goodFeaturesToTrack
(
InputArray
_image
,
OutputArray
_corners
,
...
...
This diff is collapsed.
Click to expand it.
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