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
677c7f27
Commit
677c7f27
authored
Nov 20, 2013
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed failure in Tonemap test
parent
d0b3c7a5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
13 deletions
+17
-13
arithm.cpp
modules/core/src/arithm.cpp
+1
-0
ocl.cpp
modules/core/src/ocl.cpp
+2
-2
precomp.hpp
modules/core/src/precomp.hpp
+0
-2
umatrix.cpp
modules/core/src/umatrix.cpp
+1
-0
color.cpp
modules/imgproc/src/color.cpp
+1
-0
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+12
-8
precomp.hpp
modules/imgproc/src/precomp.hpp
+0
-1
No files found.
modules/core/src/arithm.cpp
View file @
677c7f27
...
...
@@ -47,6 +47,7 @@
// */
#include "precomp.hpp"
#include "opencl_kernels.hpp"
namespace
cv
{
...
...
modules/core/src/ocl.cpp
View file @
677c7f27
...
...
@@ -3038,7 +3038,7 @@ const char* typeToStr(int t)
"?"
,
"?"
,
"?"
,
"?"
};
int
cn
=
CV_MAT_CN
(
t
);
return
cn
>
=
4
?
"?"
:
tab
[
CV_MAT_DEPTH
(
t
)
*
4
+
cn
-
1
];
return
cn
>
4
?
"?"
:
tab
[
CV_MAT_DEPTH
(
t
)
*
4
+
cn
-
1
];
}
const
char
*
memopTypeToStr
(
int
t
)
...
...
@@ -3055,7 +3055,7 @@ const char* memopTypeToStr(int t)
"?"
,
"?"
,
"?"
,
"?"
};
int
cn
=
CV_MAT_CN
(
t
);
return
cn
>
=
4
?
"?"
:
tab
[
CV_MAT_DEPTH
(
t
)
*
4
+
cn
-
1
];
return
cn
>
4
?
"?"
:
tab
[
CV_MAT_DEPTH
(
t
)
*
4
+
cn
-
1
];
}
const
char
*
convertTypeStr
(
int
sdepth
,
int
ddepth
,
int
cn
,
char
*
buf
)
...
...
modules/core/src/precomp.hpp
View file @
677c7f27
...
...
@@ -67,8 +67,6 @@
#define GET_OPTIMIZED(func) (func)
#endif
#include "opencl_kernels.hpp"
namespace
cv
{
...
...
modules/core/src/umatrix.cpp
View file @
677c7f27
...
...
@@ -41,6 +41,7 @@
//M*/
#include "precomp.hpp"
#include "opencl_kernels.hpp"
///////////////////////////////// UMat implementation ///////////////////////////////
...
...
modules/imgproc/src/color.cpp
View file @
677c7f27
...
...
@@ -90,6 +90,7 @@
\**********************************************************************************/
#include "precomp.hpp"
#include "opencl_kernels.hpp"
#include <limits>
#define CV_DESCALE(x,n) (((x) + (1 << ((n)-1))) >> (n))
...
...
modules/imgproc/src/imgwarp.cpp
View file @
677c7f27
...
...
@@ -47,6 +47,7 @@
// */
#include "precomp.hpp"
#include "opencl_kernels.hpp"
#include <iostream>
#include <vector>
...
...
@@ -1901,7 +1902,7 @@ private:
};
#endif
static
bool
ocl_resize
(
InputArray
_src
,
OutputArray
_dst
,
static
bool
ocl_resize
(
InputArray
_src
,
OutputArray
_dst
,
Size
dsize
,
double
fx
,
double
fy
,
int
interpolation
)
{
int
type
=
_src
.
type
(),
depth
=
CV_MAT_DEPTH
(
type
),
cn
=
CV_MAT_CN
(
type
);
...
...
@@ -1909,7 +1910,9 @@ static bool ocl_resize( InputArray _src, OutputArray _dst,
(
interpolation
==
INTER_NEAREST
||
(
interpolation
==
INTER_LINEAR
&&
(
depth
==
CV_8U
||
depth
==
CV_32F
))))
)
return
false
;
UMat
src
=
_src
.
getUMat
(),
dst
=
_dst
.
getUMat
();
UMat
src
=
_src
.
getUMat
();
_dst
.
create
(
dsize
,
type
);
UMat
dst
=
_dst
.
getUMat
();
ocl
::
Kernel
k
;
if
(
interpolation
==
INTER_LINEAR
)
...
...
@@ -2051,25 +2054,26 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
Size
ssize
=
_src
.
size
();
CV_Assert
(
ssize
.
area
()
>
0
);
CV_Assert
(
dsize
.
area
()
||
(
inv_scale_x
>
0
&&
inv_scale_y
>
0
)
);
if
(
!
dsize
.
area
()
)
CV_Assert
(
dsize
.
area
()
>
0
||
(
inv_scale_x
>
0
&&
inv_scale_y
>
0
)
);
if
(
dsize
.
area
()
==
0
)
{
dsize
=
Size
(
saturate_cast
<
int
>
(
ssize
.
width
*
inv_scale_x
),
saturate_cast
<
int
>
(
ssize
.
height
*
inv_scale_y
));
CV_Assert
(
dsize
.
area
()
);
CV_Assert
(
dsize
.
area
()
>
0
);
}
else
{
inv_scale_x
=
(
double
)
dsize
.
width
/
ssize
.
width
;
inv_scale_y
=
(
double
)
dsize
.
height
/
ssize
.
height
;
}
_dst
.
create
(
dsize
,
_src
.
type
());
if
(
ocl
::
useOpenCL
()
&&
_dst
.
kind
()
==
_InputArray
::
UMAT
&&
ocl_resize
(
_src
,
_dst
,
inv_scale_x
,
inv_scale_y
,
interpolation
)
)
ocl_resize
(
_src
,
_dst
,
dsize
,
inv_scale_x
,
inv_scale_y
,
interpolation
)
)
return
;
Mat
src
=
_src
.
getMat
(),
dst
=
_dst
.
getMat
();
Mat
src
=
_src
.
getMat
();
_dst
.
create
(
dsize
,
src
.
type
());
Mat
dst
=
_dst
.
getMat
();
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
resize
(
src
,
dst
,
(
float
)
inv_scale_x
,
(
float
)
inv_scale_y
,
interpolation
))
...
...
modules/imgproc/src/precomp.hpp
View file @
677c7f27
...
...
@@ -49,7 +49,6 @@
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/core/private.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencl_kernels.hpp"
#include <math.h>
#include <assert.h>
...
...
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