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
0b4e7d60
Commit
0b4e7d60
authored
Oct 31, 2011
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed remap under cc < 2.0
parent
583ceef6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
remap.cu
modules/gpu/src/cuda/remap.cu
+0
-0
imgproc.cpp
modules/gpu/src/imgproc.cpp
+7
-3
No files found.
modules/gpu/src/cuda/remap.cu
View file @
0b4e7d60
This diff is collapsed.
Click to expand it.
modules/gpu/src/imgproc.cpp
View file @
0b4e7d60
...
...
@@ -110,14 +110,15 @@ void cv::gpu::CannyBuf::release() { throw_nogpu(); }
namespace
cv
{
namespace
gpu
{
namespace
imgproc
{
template
<
typename
T
>
void
remap_gpu
(
const
DevMem2Db
&
src
,
const
DevMem2Df
&
xmap
,
const
DevMem2Df
&
ymap
,
const
DevMem2Db
&
dst
,
int
interpolation
,
int
borderMode
,
const
float
*
borderValue
,
cudaStream_t
stream
);
int
interpolation
,
int
borderMode
,
const
float
*
borderValue
,
cudaStream_t
stream
,
int
cc
);
}}}
void
cv
::
gpu
::
remap
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
const
GpuMat
&
xmap
,
const
GpuMat
&
ymap
,
int
interpolation
,
int
borderMode
,
const
Scalar
&
borderValue
,
Stream
&
stream
)
{
using
namespace
cv
::
gpu
::
imgproc
;
typedef
void
(
*
caller_t
)(
const
DevMem2Db
&
src
,
const
DevMem2Df
&
xmap
,
const
DevMem2Df
&
ymap
,
const
DevMem2Db
&
dst
,
int
interpolation
,
int
borderMode
,
const
float
*
borderValue
,
cudaStream_t
stream
);
typedef
void
(
*
caller_t
)(
const
DevMem2Db
&
src
,
const
DevMem2Df
&
xmap
,
const
DevMem2Df
&
ymap
,
const
DevMem2Db
&
dst
,
int
interpolation
,
int
borderMode
,
const
float
*
borderValue
,
cudaStream_t
stream
,
int
cc
);
static
const
caller_t
callers
[
6
][
4
]
=
{
{
remap_gpu
<
uchar
>
,
0
/*remap_gpu<uchar2>*/
,
remap_gpu
<
uchar3
>
,
remap_gpu
<
uchar4
>
},
...
...
@@ -145,7 +146,10 @@ void cv::gpu::remap(const GpuMat& src, GpuMat& dst, const GpuMat& xmap, const Gp
Scalar_
<
float
>
borderValueFloat
;
borderValueFloat
=
borderValue
;
func
(
src
,
xmap
,
ymap
,
dst
,
interpolation
,
gpuBorderType
,
borderValueFloat
.
val
,
StreamAccessor
::
getStream
(
stream
));
DeviceInfo
info
;
int
cc
=
info
.
majorVersion
()
*
10
+
info
.
minorVersion
();
func
(
src
,
xmap
,
ymap
,
dst
,
interpolation
,
gpuBorderType
,
borderValueFloat
.
val
,
StreamAccessor
::
getStream
(
stream
),
cc
);
}
////////////////////////////////////////////////////////////////////////
...
...
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