Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a56d282f
Commit
a56d282f
authored
Oct 08, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2283 from tolysz:patch-1
parents
a8c7a56b
a9639b2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
NCVHaarObjectDetection.hpp
...acy/include/opencv2/cudalegacy/NCVHaarObjectDetection.hpp
+10
-9
No files found.
modules/cudalegacy/include/opencv2/cudalegacy/NCVHaarObjectDetection.hpp
View file @
a56d282f
...
...
@@ -84,10 +84,11 @@ struct HaarFeature64
__host__
NCVStatus
setRect
(
Ncv32u
rectX
,
Ncv32u
rectY
,
Ncv32u
rectWidth
,
Ncv32u
rectHeight
,
Ncv32u
/*clsWidth*/
,
Ncv32u
/*clsHeight*/
)
{
ncvAssertReturn
(
rectWidth
<=
HaarFeature64_CreateCheck_MaxRectField
&&
rectHeight
<=
HaarFeature64_CreateCheck_MaxRectField
,
NCV_HAAR_TOO_LARGE_FEATURES
);
((
NcvRect8u
*
)
&
(
this
->
_ui2
.
x
))
->
x
=
(
Ncv8u
)
rectX
;
((
NcvRect8u
*
)
&
(
this
->
_ui2
.
x
))
->
y
=
(
Ncv8u
)
rectY
;
((
NcvRect8u
*
)
&
(
this
->
_ui2
.
x
))
->
width
=
(
Ncv8u
)
rectWidth
;
((
NcvRect8u
*
)
&
(
this
->
_ui2
.
x
))
->
height
=
(
Ncv8u
)
rectHeight
;
NcvRect8u
*
tmpRect
=
(
NcvRect8u
*
)
&
this
->
_ui2
.
x
;
tmpRect
->
x
=
(
Ncv8u
)
rectX
;
tmpRect
->
y
=
(
Ncv8u
)
rectY
;
tmpRect
->
width
=
(
Ncv8u
)
rectWidth
;
tmpRect
->
height
=
(
Ncv8u
)
rectHeight
;
return
NCV_SUCCESS
;
}
...
...
@@ -99,11 +100,11 @@ struct HaarFeature64
__device__
__host__
void
getRect
(
Ncv32u
*
rectX
,
Ncv32u
*
rectY
,
Ncv32u
*
rectWidth
,
Ncv32u
*
rectHeight
)
{
NcvRect8u
tmpRect
=
*
(
NcvRect8u
*
)(
&
this
->
_ui2
.
x
)
;
*
rectX
=
tmpRect
.
x
;
*
rectY
=
tmpRect
.
y
;
*
rectWidth
=
tmpRect
.
width
;
*
rectHeight
=
tmpRect
.
height
;
NcvRect8u
*
tmpRect
=
(
NcvRect8u
*
)
&
this
->
_ui2
.
x
;
*
rectX
=
tmpRect
->
x
;
*
rectY
=
tmpRect
->
y
;
*
rectWidth
=
tmpRect
->
width
;
*
rectHeight
=
tmpRect
->
height
;
}
__device__
__host__
Ncv32f
getWeight
(
void
)
...
...
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