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
723af152
Commit
723af152
authored
Oct 11, 2013
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocl: fix warnings from GCC 4.8, update Haar
parent
d5723480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
26 deletions
+10
-26
test_convhull.cpp
modules/imgproc/test/test_convhull.cpp
+4
-4
haar.cpp
modules/ocl/src/haar.cpp
+6
-22
No files found.
modules/imgproc/test/test_convhull.cpp
View file @
723af152
...
...
@@ -1290,14 +1290,14 @@ void CV_FitLineTest::generate_point_set( void* pointsSet )
t
=
(
float
)((
cvtest
::
randReal
(
rng
)
-
0.5
)
*
low_high_range
*
2
);
for
(
k
=
0
;
k
<
n
;
k
++
)
{
p
[
k
]
=
(
float
)((
cvtest
::
randReal
(
rng
)
-
0.5
)
*
max_noise
*
2
+
t
*
line0
[
k
]
+
line0
[
k
+
n
]);
if
(
point_type
==
CV_32S
)
for
(
k
=
0
;
k
<
n
;
k
++
)
if
(
point_type
==
CV_32S
)
pi
[
k
]
=
cvRound
(
p
[
k
]);
else
for
(
k
=
0
;
k
<
n
;
k
++
)
else
pf
[
k
]
=
p
[
k
];
}
}
}
...
...
modules/ocl/src/haar.cpp
View file @
723af152
...
...
@@ -625,37 +625,21 @@ static void gpuSetHaarClassifierCascade( CvHaarClassifierCascade *_cascade)
cascade
->
p3
=
equRect
.
width
;
for
(
i
=
0
;
i
<
_cascade
->
count
;
i
++
)
{
int
j
,
k
,
l
;
int
j
,
l
;
for
(
j
=
0
;
j
<
stage_classifier
[
i
].
count
;
j
++
)
{
for
(
l
=
0
;
l
<
stage_classifier
[
i
].
classifier
[
j
].
count
;
l
++
)
{
CvHaarFeature
*
feature
=
const
CvHaarFeature
*
feature
=
&
_cascade
->
stage_classifier
[
i
].
classifier
[
j
].
haar_feature
[
l
];
GpuHidHaarTreeNode
*
hidnode
=
&
stage_classifier
[
i
].
classifier
[
j
].
node
[
l
];
CvRect
r
[
3
];
int
nr
;
/* align blocks */
for
(
k
=
0
;
k
<
CV_HAAR_FEATURE_MAX
;
k
++
)
for
(
int
k
=
0
;
k
<
CV_HAAR_FEATURE_MAX
;
k
++
)
{
if
(
!
hidnode
->
p
[
k
][
0
])
const
CvRect
tr
=
feature
->
rect
[
k
].
r
;
if
(
tr
.
width
==
0
)
break
;
r
[
k
]
=
feature
->
rect
[
k
].
r
;
}
nr
=
k
;
for
(
k
=
0
;
k
<
nr
;
k
++
)
{
CvRect
tr
;
double
correction_ratio
;
tr
.
x
=
r
[
k
].
x
;
tr
.
width
=
r
[
k
].
width
;
tr
.
y
=
r
[
k
].
y
;
tr
.
height
=
r
[
k
].
height
;
correction_ratio
=
weight_scale
*
(
!
feature
->
tilted
?
1
:
0.5
);
double
correction_ratio
=
weight_scale
*
(
!
feature
->
tilted
?
1
:
0.5
);
hidnode
->
p
[
k
][
0
]
=
tr
.
x
;
hidnode
->
p
[
k
][
1
]
=
tr
.
y
;
hidnode
->
p
[
k
][
2
]
=
tr
.
width
;
...
...
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