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
c1277b61
Commit
c1277b61
authored
Oct 11, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reenabled Tegra optimized resize
parent
eeaf6192
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+6
-24
No files found.
modules/imgproc/src/imgwarp.cpp
View file @
c1277b61
...
...
@@ -1319,30 +1319,6 @@ typedef void (*ResizeAreaFunc)( const Mat& src, Mat& dst,
void
cv
::
resize
(
InputArray
_src
,
OutputArray
_dst
,
Size
dsize
,
double
inv_scale_x
,
double
inv_scale_y
,
int
interpolation
)
{
#ifdef HAVE_TEGRA_OPTIMIZATION__DISABLED
Mat
src1
=
_src
.
getMat
();
Size
ssize1
=
src1
.
size
();
int
wSrc
=
ssize1
.
width
;
int
hSrc
=
ssize1
.
height
;
if
(
hSrc
<
1
)
return
;
int
wDst
=
dsize
.
width
;
int
hDst
=
dsize
.
height
;
_dst
.
create
(
dsize
,
src1
.
type
());
Mat
dst1
=
_dst
.
getMat
();
unsigned
int
*
bSrc
=
(
unsigned
int
*
)(
src1
.
data
);
unsigned
int
*
bDst
=
(
unsigned
int
*
)
dst1
.
data
;
if
(
src1
.
channels
()
==
1
){
tegra
::
stretch1
(
bSrc
,
bDst
,
wSrc
,
hSrc
,
wDst
,
hDst
);
return
;
}
if
(
src1
.
channels
()
==
4
){
tegra
::
stretch4
(
bSrc
,
bDst
,
wSrc
,
hSrc
,
wDst
,
hDst
);
return
;
}
#endif
static
ResizeFunc
linear_tab
[]
=
{
resizeGeneric_
<
...
...
@@ -1463,6 +1439,12 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
_dst
.
create
(
dsize
,
src
.
type
());
Mat
dst
=
_dst
.
getMat
();
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
resize
(
src
,
dst
,
inv_scale_x
,
inv_scale_y
,
interpolation
))
return
;
#endif
int
depth
=
src
.
depth
(),
cn
=
src
.
channels
();
double
scale_x
=
1.
/
inv_scale_x
,
scale_y
=
1.
/
inv_scale_y
;
int
k
,
sx
,
sy
,
dx
,
dy
;
...
...
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