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
ad6aae45
Commit
ad6aae45
authored
Mar 26, 2013
by
yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fix of mismatch functions on CPU OCL
parent
2c06e59a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
brute_force_matcher.cpp
modules/ocl/src/brute_force_matcher.cpp
+0
-0
haar.cpp
modules/ocl/src/haar.cpp
+2
-2
moments.cpp
modules/ocl/src/moments.cpp
+3
-3
brute_force_match.cl
modules/ocl/src/opencl/brute_force_match.cl
+0
-0
haarobjectdetect.cl
modules/ocl/src/opencl/haarobjectdetect.cl
+8
-0
test_brute_force_matcher.cpp
modules/ocl/test/test_brute_force_matcher.cpp
+2
-2
No files found.
modules/ocl/src/brute_force_matcher.cpp
View file @
ad6aae45
This diff is collapsed.
Click to expand it.
modules/ocl/src/haar.cpp
View file @
ad6aae45
...
...
@@ -953,8 +953,8 @@ CvSeq *cv::ocl::OclCascadeClassifier::oclHaarDetectObjects( oclMat &gimg, CvMemS
//int flag = 0;
oclMat
gimg1
(
gimg
.
rows
,
gimg
.
cols
,
CV_8UC1
);
oclMat
gsum
(
totalheight
,
gimg
.
cols
+
1
,
CV_32SC1
);
oclMat
gsqsum
(
totalheight
,
gimg
.
cols
+
1
,
CV_32FC1
);
oclMat
gsum
(
totalheight
+
4
,
gimg
.
cols
+
1
,
CV_32SC1
);
oclMat
gsqsum
(
totalheight
+
4
,
gimg
.
cols
+
1
,
CV_32FC1
);
//cl_mem cascadebuffer;
cl_mem
stagebuffer
;
...
...
modules/ocl/src/moments.cpp
View file @
ad6aae45
...
...
@@ -106,7 +106,7 @@ static void icvContourMoments( CvSeq* contour, CvMoments* mom )
bool
is_float
=
CV_SEQ_ELTYPE
(
contour
)
==
CV_32FC2
;
if
(
!
cv
::
ocl
::
Context
::
getContext
()
->
impl
->
double_support
&&
is_float
)
if
(
!
cv
::
ocl
::
Context
::
getContext
()
->
supportsFeature
(
Context
::
CL_DOUBLE
)
&&
is_float
)
{
CV_Error
(
CV_StsUnsupportedFormat
,
"Moments - double is not supported by your GPU!"
);
}
...
...
@@ -146,7 +146,7 @@ static void icvContourMoments( CvSeq* contour, CvMoments* mom )
cv
::
Mat
dst
(
dst_a
);
a00
=
a10
=
a01
=
a20
=
a11
=
a02
=
a30
=
a21
=
a12
=
a03
=
0.0
;
if
(
!
cv
::
ocl
::
Context
::
getContext
()
->
impl
->
double_support
)
if
(
!
cv
::
ocl
::
Context
::
getContext
()
->
supportsFeature
(
Context
::
CL_DOUBLE
)
)
{
for
(
int
i
=
0
;
i
<
contour
->
total
;
++
i
)
{
...
...
@@ -161,7 +161,7 @@ static void icvContourMoments( CvSeq* contour, CvMoments* mom )
a12
+=
dst
.
at
<
cl_long
>
(
8
,
i
);
a03
+=
dst
.
at
<
cl_long
>
(
9
,
i
);
}
}
}
else
{
a00
=
cv
::
sum
(
dst
.
row
(
0
))[
0
];
...
...
modules/ocl/src/opencl/brute_force_match.cl
View file @
ad6aae45
This diff is collapsed.
Click to expand it.
modules/ocl/src/opencl/haarobjectdetect.cl
View file @
ad6aae45
...
...
@@ -211,10 +211,14 @@ __kernel void __attribute__((reqd_work_group_size(8,8,1)))gpuRunHaarClassifierCa
int4
data
=
*
(
__global
int4*
)
&sum[glb_off]
;
int
lcl_off
=
mad24
(
lcl_y,
readwidth,
lcl_x<<2
)
;
#
if
OFF
lcldata[lcl_off]
=
data.x
;
lcldata[lcl_off+1]
=
data.y
;
lcldata[lcl_off+2]
=
data.z
;
lcldata[lcl_off+3]
=
data.w
;
#
else
vstore4
(
data,
0
,
&lcldata[lcl_off]
)
;
#
endif
}
lcloutindex[lcl_id]
=
0
;
...
...
@@ -559,3 +563,7 @@ if(result)
}
}
*/
modules/ocl/test/test_brute_force_matcher.cpp
View file @
ad6aae45
...
...
@@ -110,7 +110,7 @@ namespace
}
};
TEST_P
(
BruteForceMatcher
,
DISABLED_
Match_Single
)
TEST_P
(
BruteForceMatcher
,
Match_Single
)
{
cv
::
ocl
::
BruteForceMatcher_OCL_base
matcher
(
distType
);
...
...
@@ -130,7 +130,7 @@ namespace
ASSERT_EQ
(
0
,
badCount
);
}
TEST_P
(
BruteForceMatcher
,
DISABLED_
KnnMatch_2_Single
)
TEST_P
(
BruteForceMatcher
,
KnnMatch_2_Single
)
{
const
int
knn
=
2
;
...
...
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