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
366f859a
Commit
366f859a
authored
Apr 02, 2013
by
Vladislav Vinogradov
Committed by
Vladislav Vinogradov
Apr 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation after CV_IMPLEMENT_QSORT_EX removing
parent
db45e04d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
hough.cpp
modules/gpu/src/hough.cpp
+12
-3
No files found.
modules/gpu/src/hough.cpp
View file @
366f859a
...
...
@@ -586,8 +586,17 @@ namespace
edgePointList
.
cols
=
func
(
edges
,
dx
,
dy
,
edgePointList
.
ptr
<
unsigned
int
>
(
0
),
edgePointList
.
ptr
<
float
>
(
1
));
}
#define votes_cmp_gt(l1, l2) (aux[l1].x > aux[l2].x)
static
CV_IMPLEMENT_QSORT_EX
(
sortIndexies
,
int
,
votes_cmp_gt
,
const
int3
*
)
struct
IndexCmp
{
const
int3
*
aux
;
explicit
IndexCmp
(
const
int3
*
_aux
)
:
aux
(
_aux
)
{}
bool
operator
()(
int
l1
,
int
l2
)
const
{
return
aux
[
l1
].
x
>
aux
[
l2
].
x
;
}
};
void
GHT_Pos
::
filterMinDist
()
{
...
...
@@ -600,7 +609,7 @@ namespace
indexies
.
resize
(
posCount
);
for
(
int
i
=
0
;
i
<
posCount
;
++
i
)
indexies
[
i
]
=
i
;
s
ortIndexies
(
&
indexies
[
0
],
posCount
,
&
oldVoteBuf
[
0
]
);
s
td
::
sort
(
indexies
.
begin
(),
indexies
.
end
(),
IndexCmp
(
&
oldVoteBuf
[
0
])
);
newPosBuf
.
clear
();
newVoteBuf
.
clear
();
...
...
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