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
9a9f212d
Commit
9a9f212d
authored
Jun 18, 2012
by
Marina Kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resize function signature refactoring
parent
e69c6fde
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+1
-1
resize.cpp
modules/gpu/src/resize.cpp
+2
-2
test_resize.cpp
modules/gpu/test/test_resize.cpp
+1
-1
No files found.
modules/gpu/include/opencv2/gpu/gpu.hpp
View file @
9a9f212d
...
@@ -631,7 +631,7 @@ CV_EXPORTS void resize(const GpuMat& src, GpuMat& dst, Size dsize, double fx=0,
...
@@ -631,7 +631,7 @@ CV_EXPORTS void resize(const GpuMat& src, GpuMat& dst, Size dsize, double fx=0,
//! resizes the image
//! resizes the image
//! Supports INTER_AREA
//! Supports INTER_AREA
CV_EXPORTS
void
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
Size
dsize
,
GpuMat
&
buffer
,
double
fx
=
0
,
double
fy
=
0
,
int
interpolation
=
INTER_AREA
,
Stream
&
stream
=
Stream
::
Null
());
CV_EXPORTS
void
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
GpuMat
&
buffer
,
Size
dsize
,
double
fx
=
0
,
double
fy
=
0
,
int
interpolation
=
INTER_AREA
,
Stream
&
stream
=
Stream
::
Null
());
//! warps the image using affine transformation
//! warps the image using affine transformation
//! Supports INTER_NEAREST, INTER_LINEAR, INTER_CUBIC
//! Supports INTER_NEAREST, INTER_LINEAR, INTER_CUBIC
...
...
modules/gpu/src/resize.cpp
View file @
9a9f212d
...
@@ -56,7 +56,7 @@ void cv::gpu::resize(const GpuMat& src, GpuMat& dst, Size dsize, double fx, doub
...
@@ -56,7 +56,7 @@ void cv::gpu::resize(const GpuMat& src, GpuMat& dst, Size dsize, double fx, doub
throw_nogpu
();
throw_nogpu
();
}
}
void
cv
::
gpu
::
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
Size
dsize
,
GpuMat
&
buffer
,
void
cv
::
gpu
::
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
GpuMat
&
buffer
,
Size
dsize
,
double
fx
,
double
fy
,
int
interpolation
,
Stream
&
s
)
double
fx
,
double
fy
,
int
interpolation
,
Stream
&
s
)
{
{
(
void
)
src
;
(
void
)
src
;
...
@@ -87,7 +87,7 @@ namespace cv { namespace gpu { namespace device
...
@@ -87,7 +87,7 @@ namespace cv { namespace gpu { namespace device
}
}
}}}
}}}
void
cv
::
gpu
::
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
Size
dsize
,
GpuMat
&
buffer
,
double
fx
,
double
fy
,
void
cv
::
gpu
::
resize
(
const
GpuMat
&
src
,
GpuMat
&
dst
,
GpuMat
&
buffer
,
Size
dsize
,
double
fx
,
double
fy
,
int
interpolation
,
Stream
&
s
)
int
interpolation
,
Stream
&
s
)
{
{
CV_Assert
(
src
.
depth
()
<=
CV_32F
&&
src
.
channels
()
<=
4
);
CV_Assert
(
src
.
depth
()
<=
CV_32F
&&
src
.
channels
()
<=
4
);
...
...
modules/gpu/test/test_resize.cpp
View file @
9a9f212d
...
@@ -189,7 +189,7 @@ TEST_P(ResizeArea, Accuracy)
...
@@ -189,7 +189,7 @@ TEST_P(ResizeArea, Accuracy)
cv
::
gpu
::
GpuMat
dst
=
createMat
(
cv
::
Size
(
cv
::
saturate_cast
<
int
>
(
src
.
cols
*
coeff
),
cv
::
saturate_cast
<
int
>
(
src
.
rows
*
coeff
)),
type
,
useRoi
);
cv
::
gpu
::
GpuMat
dst
=
createMat
(
cv
::
Size
(
cv
::
saturate_cast
<
int
>
(
src
.
cols
*
coeff
),
cv
::
saturate_cast
<
int
>
(
src
.
rows
*
coeff
)),
type
,
useRoi
);
cv
::
gpu
::
GpuMat
buffer
=
createMat
(
cv
::
Size
(
dst
.
cols
,
src
.
rows
),
CV_32FC1
);
cv
::
gpu
::
GpuMat
buffer
=
createMat
(
cv
::
Size
(
dst
.
cols
,
src
.
rows
),
CV_32FC1
);
cv
::
gpu
::
resize
(
loadMat
(
src
,
useRoi
),
dst
,
cv
::
Size
(),
buffer
,
coeff
,
coeff
,
interpolation
);
cv
::
gpu
::
resize
(
loadMat
(
src
,
useRoi
),
dst
,
buffer
,
cv
::
Size
()
,
coeff
,
coeff
,
interpolation
);
cv
::
Mat
dst_cpu
;
cv
::
Mat
dst_cpu
;
...
...
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