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
913d4541
Commit
913d4541
authored
Jun 14, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduced some tegra stubs
parent
a98d6b62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
20 deletions
+9
-20
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+9
-20
thresh.cpp
modules/imgproc/src/thresh.cpp
+0
-0
No files found.
modules/imgproc/src/imgwarp.cpp
View file @
913d4541
...
...
@@ -2839,6 +2839,11 @@ void cv::warpAffine( InputArray _src, OutputArray _dst,
CV_Assert
(
(
M0
.
type
()
==
CV_32F
||
M0
.
type
()
==
CV_64F
)
&&
M0
.
rows
==
2
&&
M0
.
cols
==
3
);
M0
.
convertTo
(
matM
,
matM
.
type
());
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
warpAffine
(
src
,
dst
,
M
,
flags
,
borderType
,
borderValue
)
)
return
;
#endif
if
(
!
(
flags
&
WARP_INVERSE_MAP
)
)
{
double
D
=
M
[
0
]
*
M
[
4
]
-
M
[
1
]
*
M
[
3
];
...
...
@@ -2851,22 +2856,6 @@ void cv::warpAffine( InputArray _src, OutputArray _dst,
M
[
2
]
=
b1
;
M
[
5
]
=
b2
;
}
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
borderType
==
BORDER_REPLICATE
)
{
if
(
tegra
::
warpAffine
(
src
,
dst
,
M
,
interpolation
,
borderType
,
borderValue
)
)
return
;
}
else
{
double
warp_mat
[
6
];
Mat
warp_m
(
2
,
3
,
CV_64F
,
warp_mat
);
M0
.
convertTo
(
warp_m
,
warp_m
.
type
());
if
(
tegra
::
warpAffine
(
src
,
dst
,
warp_mat
,
interpolation
,
borderType
,
borderValue
)
)
return
;
}
#endif
int
x
,
y
,
x1
,
y1
,
width
=
dst
.
cols
,
height
=
dst
.
rows
;
AutoBuffer
<
int
>
_abdelta
(
width
*
2
);
int
*
adelta
=
&
_abdelta
[
0
],
*
bdelta
=
adelta
+
width
;
...
...
@@ -2995,14 +2984,14 @@ void cv::warpPerspective( InputArray _src, OutputArray _dst, InputArray _M0,
CV_Assert
(
(
M0
.
type
()
==
CV_32F
||
M0
.
type
()
==
CV_64F
)
&&
M0
.
rows
==
3
&&
M0
.
cols
==
3
);
M0
.
convertTo
(
matM
,
matM
.
type
());
if
(
!
(
flags
&
WARP_INVERSE_MAP
)
)
invert
(
matM
,
matM
);
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
warpPerspective
(
src
,
dst
,
M
,
interpolation
,
borderType
,
borderValue
)
)
if
(
tegra
::
warpPerspective
(
src
,
dst
,
M
,
flags
,
borderType
,
borderValue
)
)
return
;
#endif
if
(
!
(
flags
&
WARP_INVERSE_MAP
)
)
invert
(
matM
,
matM
);
int
x
,
y
,
x1
,
y1
,
width
=
dst
.
cols
,
height
=
dst
.
rows
;
int
bh0
=
std
::
min
(
BLOCK_SZ
/
2
,
height
);
...
...
modules/imgproc/src/thresh.cpp
View file @
913d4541
This diff is collapsed.
Click to expand it.
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