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
01bd4961
Commit
01bd4961
authored
Aug 13, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3081 from akarsakov:small_fixes
parents
28f3a44e
713ddb89
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
8 deletions
+14
-8
perf_dxt.cpp
modules/core/perf/opencl/perf_dxt.cpp
+1
-1
matmul.cpp
modules/core/src/matmul.cpp
+2
-1
test_gemm.cpp
modules/core/test/ocl/test_gemm.cpp
+3
-2
test_eigen.cpp
modules/core/test/test_eigen.cpp
+1
-1
calc_back_project.cl
modules/imgproc/src/opencl/calc_back_project.cl
+5
-2
smooth.cpp
modules/imgproc/src/smooth.cpp
+2
-1
No files found.
modules/core/perf/opencl/perf_dxt.cpp
View file @
01bd4961
...
...
@@ -75,7 +75,7 @@ OCL_PERF_TEST_P(DftFixture, Dft, ::testing::Combine(Values(C2C, R2R, C2R, R2C),
const
Size
srcSize
=
get
<
1
>
(
params
);
int
flags
=
get
<
2
>
(
params
);
int
in_cn
,
out_cn
;
int
in_cn
=
0
,
out_cn
=
0
;
switch
(
dft_type
)
{
case
R2R
:
flags
|=
cv
::
DFT_REAL_OUTPUT
;
in_cn
=
1
;
out_cn
=
1
;
break
;
...
...
modules/core/src/matmul.cpp
View file @
01bd4961
...
...
@@ -781,7 +781,8 @@ void cv::gemm( InputArray matA, InputArray matB, double alpha,
InputArray
matC
,
double
beta
,
OutputArray
_matD
,
int
flags
)
{
#ifdef HAVE_CLAMDBLAS
CV_OCL_RUN
(
ocl
::
haveAmdBlas
()
&&
matA
.
dims
()
<=
2
&&
matB
.
dims
()
<=
2
&&
matC
.
dims
()
<=
2
&&
_matD
.
isUMat
(),
CV_OCL_RUN
(
ocl
::
haveAmdBlas
()
&&
matA
.
dims
()
<=
2
&&
matB
.
dims
()
<=
2
&&
matC
.
dims
()
<=
2
&&
_matD
.
isUMat
()
&&
matA
.
cols
()
>
20
&&
matA
.
rows
()
>
20
&&
matB
.
cols
()
>
20
,
// since it works incorrect for small sizes
ocl_gemm
(
matA
,
matB
,
alpha
,
matC
,
beta
,
_matD
,
flags
))
#endif
...
...
modules/core/test/ocl/test_gemm.cpp
View file @
01bd4961
...
...
@@ -90,14 +90,15 @@ PARAM_TEST_CASE(Gemm,
void
generateTestData
()
{
Size
ARoiSize
=
randomSize
(
1
,
MAX_VALUE
);
// set minimum size to 20, since testing less sizes doesn't make sense
Size
ARoiSize
=
randomSize
(
20
,
MAX_VALUE
);
Border
ABorder
=
randomBorder
(
0
,
use_roi
?
MAX_VALUE
:
0
);
randomSubMat
(
A
,
A_roi
,
ARoiSize
,
ABorder
,
type
,
-
11
,
11
);
if
(
atrans
)
ARoiSize
=
Size
(
ARoiSize
.
height
,
ARoiSize
.
width
);
Size
BRoiSize
=
randomSize
(
1
,
MAX_VALUE
);
Size
BRoiSize
=
randomSize
(
20
,
MAX_VALUE
);
if
(
btrans
)
BRoiSize
.
width
=
ARoiSize
.
width
;
else
...
...
modules/core/test/test_eigen.cpp
View file @
01bd4961
...
...
@@ -164,7 +164,7 @@ void Core_EigenTest_32::run(int) { check_full(CV_32FC1); }
void
Core_EigenTest_64
::
run
(
int
)
{
check_full
(
CV_64FC1
);
}
Core_EigenTest
::
Core_EigenTest
()
:
eps_val_32
(
1e-3
f
),
eps_vec_32
(
1
e-2
f
),
:
eps_val_32
(
1e-3
f
),
eps_vec_32
(
1
2e-3
f
),
eps_val_64
(
1e-4
f
),
eps_vec_64
(
1e-3
f
),
ntests
(
100
)
{}
Core_EigenTest
::~
Core_EigenTest
()
{}
...
...
modules/imgproc/src/opencl/calc_back_project.cl
View file @
01bd4961
...
...
@@ -39,6 +39,9 @@
#
define
OUT_OF_RANGE
-1
//
for
identical
rounding
after
dividing
on
different
platforms
#
define
ROUNDING_EPS
0.000001f
#
if
histdims
==
1
__kernel
void
calcLUT
(
__global
const
uchar
*
histptr,
int
hist_step,
int
hist_offset,
int
hist_bins,
...
...
@@ -53,7 +56,7 @@ __kernel void calcLUT(__global const uchar * histptr, int hist_step, int hist_of
{
float lb = ranges[0], ub = ranges[1], gap = (ub - lb) / hist_bins;
value -= lb;
int bin = convert_int_sat_rtn(value / gap);
int bin = convert_int_sat_rtn(value / gap
+ ROUNDING_EPS
);
if (bin >= hist_bins)
lut[x] = OUT_OF_RANGE;
...
...
@@ -101,7 +104,7 @@ __kernel void calcLUT(int hist_bins, __global int * lut, int lut_offset,
{
float lb = ranges[0], ub = ranges[1], gap = (ub - lb) / hist_bins;
value -= lb;
int bin = convert_int_sat_rtn(value / gap);
int bin = convert_int_sat_rtn(value / gap
+ ROUNDING_EPS
);
lut[x] = bin >= hist_bins ? OUT_OF_RANGE : bin;
}
...
...
modules/imgproc/src/smooth.cpp
View file @
01bd4961
...
...
@@ -939,7 +939,8 @@ void cv::boxFilter( InputArray _src, OutputArray _dst, int ddepth,
if
(
normalize
&&
!
src
.
isSubmatrix
()
&&
ddepth
==
sdepth
&&
(
/*ippBorderType == BORDER_REPLICATE ||*/
/* returns ippStsStepErr: Step value is not valid */
ippBorderType
==
BORDER_CONSTANT
)
&&
ocvAnchor
==
ippAnchor
)
ippBorderType
==
BORDER_CONSTANT
)
&&
ocvAnchor
==
ippAnchor
&&
dst
.
cols
!=
ksize
.
width
&&
dst
.
rows
!=
ksize
.
height
)
// returns ippStsMaskSizeErr: mask has an illegal value
{
Ipp32s
bufSize
=
0
;
IppiSize
roiSize
=
{
dst
.
cols
,
dst
.
rows
},
maskSize
=
{
ksize
.
width
,
ksize
.
height
};
...
...
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