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
922fc582
Commit
922fc582
authored
Jun 03, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added CV_64F support to cv::remap (ticket #650)
parent
07a9d355
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+8
-5
No files found.
modules/imgproc/src/imgwarp.cpp
View file @
922fc582
...
@@ -2416,7 +2416,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
...
@@ -2416,7 +2416,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
remapBilinear
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
RemapVec_8u
,
short
>
,
0
,
remapBilinear
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
RemapVec_8u
,
short
>
,
0
,
remapBilinear
<
Cast
<
float
,
ushort
>
,
RemapNoVec
,
float
>
,
remapBilinear
<
Cast
<
float
,
ushort
>
,
RemapNoVec
,
float
>
,
remapBilinear
<
Cast
<
float
,
short
>
,
RemapNoVec
,
float
>
,
0
,
remapBilinear
<
Cast
<
float
,
short
>
,
RemapNoVec
,
float
>
,
0
,
remapBilinear
<
Cast
<
float
,
float
>
,
RemapNoVec
,
float
>
,
0
,
0
remapBilinear
<
Cast
<
float
,
float
>
,
RemapNoVec
,
float
>
,
remapBilinear
<
Cast
<
double
,
double
>
,
RemapNoVec
,
float
>
,
0
};
};
static
RemapFunc
cubic_tab
[]
=
static
RemapFunc
cubic_tab
[]
=
...
@@ -2424,7 +2425,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
...
@@ -2424,7 +2425,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
remapBicubic
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
short
,
INTER_REMAP_COEF_SCALE
>
,
0
,
remapBicubic
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
short
,
INTER_REMAP_COEF_SCALE
>
,
0
,
remapBicubic
<
Cast
<
float
,
ushort
>
,
float
,
1
>
,
remapBicubic
<
Cast
<
float
,
ushort
>
,
float
,
1
>
,
remapBicubic
<
Cast
<
float
,
short
>
,
float
,
1
>
,
0
,
remapBicubic
<
Cast
<
float
,
short
>
,
float
,
1
>
,
0
,
remapBicubic
<
Cast
<
float
,
float
>
,
float
,
1
>
,
0
,
0
remapBicubic
<
Cast
<
float
,
float
>
,
float
,
1
>
,
remapBicubic
<
Cast
<
double
,
double
>
,
float
,
1
>
,
0
};
};
static
RemapFunc
lanczos4_tab
[]
=
static
RemapFunc
lanczos4_tab
[]
=
...
@@ -2432,7 +2434,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
...
@@ -2432,7 +2434,8 @@ void cv::remap( const InputArray& _src, OutputArray _dst,
remapLanczos4
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
short
,
INTER_REMAP_COEF_SCALE
>
,
0
,
remapLanczos4
<
FixedPtCast
<
int
,
uchar
,
INTER_REMAP_COEF_BITS
>
,
short
,
INTER_REMAP_COEF_SCALE
>
,
0
,
remapLanczos4
<
Cast
<
float
,
ushort
>
,
float
,
1
>
,
remapLanczos4
<
Cast
<
float
,
ushort
>
,
float
,
1
>
,
remapLanczos4
<
Cast
<
float
,
short
>
,
float
,
1
>
,
0
,
remapLanczos4
<
Cast
<
float
,
short
>
,
float
,
1
>
,
0
,
remapLanczos4
<
Cast
<
float
,
float
>
,
float
,
1
>
,
0
,
0
remapLanczos4
<
Cast
<
float
,
float
>
,
float
,
1
>
,
remapLanczos4
<
Cast
<
double
,
double
>
,
float
,
1
>
,
0
};
};
Mat
src
=
_src
.
getMat
(),
map1
=
_map1
.
getMat
(),
map2
=
_map2
.
getMat
();
Mat
src
=
_src
.
getMat
(),
map1
=
_map1
.
getMat
(),
map2
=
_map2
.
getMat
();
...
@@ -2808,7 +2811,7 @@ void cv::warpAffine( const InputArray& _src, OutputArray _dst,
...
@@ -2808,7 +2811,7 @@ void cv::warpAffine( const InputArray& _src, OutputArray _dst,
int
flags
,
int
borderType
,
const
Scalar
&
borderValue
)
int
flags
,
int
borderType
,
const
Scalar
&
borderValue
)
{
{
Mat
src
=
_src
.
getMat
(),
M0
=
_M0
.
getMat
();
Mat
src
=
_src
.
getMat
(),
M0
=
_M0
.
getMat
();
_dst
.
create
(
dsize
,
src
.
type
()
);
_dst
.
create
(
dsize
.
area
()
==
0
?
src
.
size
()
:
dsize
,
src
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
Mat
dst
=
_dst
.
getMat
();
CV_Assert
(
dst
.
data
!=
src
.
data
&&
src
.
cols
>
0
&&
src
.
rows
>
0
);
CV_Assert
(
dst
.
data
!=
src
.
data
&&
src
.
cols
>
0
&&
src
.
rows
>
0
);
...
@@ -2945,7 +2948,7 @@ void cv::warpPerspective( const InputArray& _src, OutputArray _dst, const InputA
...
@@ -2945,7 +2948,7 @@ void cv::warpPerspective( const InputArray& _src, OutputArray _dst, const InputA
Size
dsize
,
int
flags
,
int
borderType
,
const
Scalar
&
borderValue
)
Size
dsize
,
int
flags
,
int
borderType
,
const
Scalar
&
borderValue
)
{
{
Mat
src
=
_src
.
getMat
(),
M0
=
_M0
.
getMat
();
Mat
src
=
_src
.
getMat
(),
M0
=
_M0
.
getMat
();
_dst
.
create
(
dsize
,
src
.
type
()
);
_dst
.
create
(
dsize
.
area
()
==
0
?
src
.
size
()
:
dsize
,
src
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
Mat
dst
=
_dst
.
getMat
();
CV_Assert
(
dst
.
data
!=
src
.
data
&&
src
.
cols
>
0
&&
src
.
rows
>
0
);
CV_Assert
(
dst
.
data
!=
src
.
data
&&
src
.
cols
>
0
&&
src
.
rows
>
0
);
...
...
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