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
87e0eee9
Commit
87e0eee9
authored
Dec 11, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed remap and warp gpu tests
parent
746bc168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
interpolation.hpp
modules/gpu/test/interpolation.hpp
+4
-1
No files found.
modules/gpu/test/interpolation.hpp
View file @
87e0eee9
...
...
@@ -42,6 +42,9 @@
#ifndef __OPENCV_TEST_INTERPOLATION_HPP__
#define __OPENCV_TEST_INTERPOLATION_HPP__
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
template
<
typename
T
>
T
readVal
(
const
cv
::
Mat
&
src
,
int
y
,
int
x
,
int
c
,
int
border_type
,
cv
::
Scalar
borderVal
=
cv
::
Scalar
())
{
if
(
border_type
==
cv
::
BORDER_CONSTANT
)
...
...
@@ -113,7 +116,7 @@ template <typename T> struct CubicInterpolator
for
(
float
cx
=
xmin
;
cx
<=
xmax
;
cx
+=
1.0
f
)
{
const
float
w
=
bicubicCoeff
(
x
-
cx
)
*
bicubicCoeff
(
y
-
cy
);
sum
+=
w
*
readVal
<
T
>
(
src
,
cvFloor
(
cy
),
cvFloor
(
cx
),
c
,
border_type
,
borderVal
);
sum
+=
w
*
readVal
<
T
>
(
src
,
(
int
)
floorf
(
cy
),
(
int
)
floorf
(
cx
),
c
,
border_type
,
borderVal
);
wsum
+=
w
;
}
}
...
...
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