public class opencv_cudawarping extends opencv_cudawarping
Constructor and Description |
---|
opencv_cudawarping() |
Modifier and Type | Method and Description |
---|---|
static void |
buildWarpAffineMaps(GpuMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpAffineMaps(GpuMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpAffineMaps(Mat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpAffineMaps(Mat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpAffineMaps(Mat M,
boolean inverse,
Size dsize,
Mat xmap,
Mat ymap) |
static void |
buildWarpAffineMaps(Mat M,
boolean inverse,
Size dsize,
Mat xmap,
Mat ymap,
Stream stream)
\brief Builds transformation maps for affine transformation.
|
static void |
buildWarpAffineMaps(UMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpAffineMaps(UMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpAffineMaps(UMat M,
boolean inverse,
Size dsize,
UMat xmap,
UMat ymap) |
static void |
buildWarpAffineMaps(UMat M,
boolean inverse,
Size dsize,
UMat xmap,
UMat ymap,
Stream stream) |
static void |
buildWarpPerspectiveMaps(GpuMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpPerspectiveMaps(GpuMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpPerspectiveMaps(Mat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpPerspectiveMaps(Mat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpPerspectiveMaps(Mat M,
boolean inverse,
Size dsize,
Mat xmap,
Mat ymap) |
static void |
buildWarpPerspectiveMaps(Mat M,
boolean inverse,
Size dsize,
Mat xmap,
Mat ymap,
Stream stream)
\brief Builds transformation maps for perspective transformation.
|
static void |
buildWarpPerspectiveMaps(UMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap) |
static void |
buildWarpPerspectiveMaps(UMat M,
boolean inverse,
Size dsize,
GpuMat xmap,
GpuMat ymap,
Stream stream) |
static void |
buildWarpPerspectiveMaps(UMat M,
boolean inverse,
Size dsize,
UMat xmap,
UMat ymap) |
static void |
buildWarpPerspectiveMaps(UMat M,
boolean inverse,
Size dsize,
UMat xmap,
UMat ymap,
Stream stream) |
static void |
pyrDown(GpuMat src,
GpuMat dst) |
static void |
pyrDown(GpuMat src,
GpuMat dst,
Stream stream) |
static void |
pyrDown(Mat src,
Mat dst) |
static void |
pyrDown(Mat src,
Mat dst,
Stream stream)
\brief Smoothes an image and downsamples it.
|
static void |
pyrDown(UMat src,
UMat dst) |
static void |
pyrDown(UMat src,
UMat dst,
Stream stream) |
static void |
pyrUp(GpuMat src,
GpuMat dst) |
static void |
pyrUp(GpuMat src,
GpuMat dst,
Stream stream) |
static void |
pyrUp(Mat src,
Mat dst) |
static void |
pyrUp(Mat src,
Mat dst,
Stream stream)
\brief Upsamples an image and then smoothes it.
|
static void |
pyrUp(UMat src,
UMat dst) |
static void |
pyrUp(UMat src,
UMat dst,
Stream stream) |
static void |
remap(GpuMat src,
GpuMat dst,
GpuMat xmap,
GpuMat ymap,
int interpolation) |
static void |
remap(GpuMat src,
GpuMat dst,
GpuMat xmap,
GpuMat ymap,
int interpolation,
int borderMode,
Scalar borderValue,
Stream stream) |
static void |
remap(Mat src,
Mat dst,
Mat xmap,
Mat ymap,
int interpolation) |
static void |
remap(Mat src,
Mat dst,
Mat xmap,
Mat ymap,
int interpolation,
int borderMode,
Scalar borderValue,
Stream stream)
\addtogroup cudawarping
\{
|
static void |
remap(UMat src,
UMat dst,
UMat xmap,
UMat ymap,
int interpolation) |
static void |
remap(UMat src,
UMat dst,
UMat xmap,
UMat ymap,
int interpolation,
int borderMode,
Scalar borderValue,
Stream stream) |
static void |
resize(GpuMat src,
GpuMat dst,
Size dsize) |
static void |
resize(GpuMat src,
GpuMat dst,
Size dsize,
double fx,
double fy,
int interpolation,
Stream stream) |
static void |
resize(Mat src,
Mat dst,
Size dsize) |
static void |
resize(Mat src,
Mat dst,
Size dsize,
double fx,
double fy,
int interpolation,
Stream stream)
\brief Resizes an image.
|
static void |
resize(UMat src,
UMat dst,
Size dsize) |
static void |
resize(UMat src,
UMat dst,
Size dsize,
double fx,
double fy,
int interpolation,
Stream stream) |
static void |
rotate(GpuMat src,
GpuMat dst,
Size dsize,
double angle) |
static void |
rotate(GpuMat src,
GpuMat dst,
Size dsize,
double angle,
double xShift,
double yShift,
int interpolation,
Stream stream) |
static void |
rotate(Mat src,
Mat dst,
Size dsize,
double angle) |
static void |
rotate(Mat src,
Mat dst,
Size dsize,
double angle,
double xShift,
double yShift,
int interpolation,
Stream stream)
\brief Rotates an image around the origin (0,0) and then shifts it.
|
static void |
rotate(UMat src,
UMat dst,
Size dsize,
double angle) |
static void |
rotate(UMat src,
UMat dst,
Size dsize,
double angle,
double xShift,
double yShift,
int interpolation,
Stream stream) |
static void |
warpAffine(GpuMat src,
GpuMat dst,
Mat M,
Size dsize) |
static void |
warpAffine(GpuMat src,
GpuMat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue,
Stream stream)
\brief Applies an affine transformation to an image.
|
static void |
warpPerspective(GpuMat src,
GpuMat dst,
Mat M,
Size dsize) |
static void |
warpPerspective(GpuMat src,
GpuMat dst,
Mat M,
Size dsize,
int flags,
int borderMode,
Scalar borderValue,
Stream stream)
\brief Applies a perspective transformation to an image.
|
map
@Namespace(value="cv::cuda") public static void remap(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat xmap, @ByVal Mat ymap, int interpolation, int borderMode, @ByVal(nullValue="cv::Scalar()") Scalar borderValue, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
/** \brief Applies a generic geometrical transformation to an image.
src
- Source image.dst
- Destination image with the size the same as xmap and the type the same as src .xmap
- X values. Only CV_32FC1 type is supported.ymap
- Y values. Only CV_32FC1 type is supported.interpolation
- Interpolation method (see resize ). INTER_NEAREST , INTER_LINEAR and
INTER_CUBIC are supported for now.borderMode
- Pixel extrapolation method (see borderInterpolate ). BORDER_REFLECT101 ,
BORDER_REPLICATE , BORDER_CONSTANT , BORDER_REFLECT and BORDER_WRAP are supported for now.borderValue
- Value used in case of a constant border. By default, it is 0.stream
- Stream for the asynchronous version.
The function transforms the source image using the specified map:
\[\texttt{dst} (x,y) = \texttt{src} (xmap(x,y), ymap(x,y))\]
Values of pixels with non-integer coordinates are computed using the bilinear interpolation.
remap
@Namespace(value="cv::cuda") public static void remap(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat xmap, @ByVal Mat ymap, int interpolation)
@Namespace(value="cv::cuda") public static void remap(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat xmap, @ByVal UMat ymap, int interpolation, int borderMode, @ByVal(nullValue="cv::Scalar()") Scalar borderValue, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void remap(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat xmap, @ByVal UMat ymap, int interpolation)
@Namespace(value="cv::cuda") public static void remap(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat xmap, @ByVal GpuMat ymap, int interpolation, int borderMode, @ByVal(nullValue="cv::Scalar()") Scalar borderValue, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void remap(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat xmap, @ByVal GpuMat ymap, int interpolation)
@Namespace(value="cv::cuda") public static void resize(@ByVal Mat src, @ByVal Mat dst, @ByVal Size dsize, double fx, double fy, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image.dst
- Destination image with the same type as src . The size is dsize (when it is non-zero)
or the size is computed from src.size() , fx , and fy .dsize
- Destination image size. If it is zero, it is computed as:
\[\texttt{dsize = Size(round(fx*src.cols), round(fy*src.rows))}\]
Either dsize or both fx and fy must be non-zero.fx
- Scale factor along the horizontal axis. If it is zero, it is computed as:
\[\texttt{(double)dsize.width/src.cols}\]
fy
- Scale factor along the vertical axis. If it is zero, it is computed as:
\[\texttt{(double)dsize.height/src.rows}\]
interpolation
- Interpolation method. INTER_NEAREST , INTER_LINEAR and INTER_CUBIC are
supported for now.stream
- Stream for the asynchronous version.
resize
@Namespace(value="cv::cuda") public static void resize(@ByVal Mat src, @ByVal Mat dst, @ByVal Size dsize)
@Namespace(value="cv::cuda") public static void resize(@ByVal UMat src, @ByVal UMat dst, @ByVal Size dsize, double fx, double fy, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void resize(@ByVal UMat src, @ByVal UMat dst, @ByVal Size dsize)
@Namespace(value="cv::cuda") public static void resize(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Size dsize, double fx, double fy, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void resize(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Size dsize)
@Namespace(value="cv::cuda") public static void warpAffine(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Mat M, @ByVal Size dsize, int flags, int borderMode, @ByVal(nullValue="cv::Scalar()") Scalar borderValue, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image. CV_8U , CV_16U , CV_32S , or CV_32F depth and 1, 3, or 4 channels are
supported.dst
- Destination image with the same type as src . The size is dsize .M
- *2x3* Mat or UMat transformation matrix.dsize
- Size of the destination image.flags
- Combination of interpolation methods (see resize) and the optional flag
WARP_INVERSE_MAP specifying that M is an inverse transformation ( dst=\>src ). Only
INTER_NEAREST , INTER_LINEAR , and INTER_CUBIC interpolation methods are supported.borderMode
- borderValue
- stream
- Stream for the asynchronous version.
warpAffine
@Namespace(value="cv::cuda") public static void warpAffine(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Mat M, @ByVal Size dsize)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal Mat xmap, @ByVal Mat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
M
- *2x3* Mat or UMat transformation matrix.inverse
- Flag specifying that M is an inverse transformation ( dst=\>src ).dsize
- Size of the destination image.xmap
- X values with CV_32FC1 type.ymap
- Y values with CV_32FC1 type.stream
- Stream for the asynchronous version.
, cuda::remap
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal Mat xmap, @ByVal Mat ymap)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal UMat xmap, @ByVal UMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal UMat xmap, @ByVal UMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal GpuMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal GpuMat xmap, @ByVal GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal GpuMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal GpuMat xmap, @ByVal GpuMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpAffineMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap)
@Namespace(value="cv::cuda") public static void warpPerspective(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Mat M, @ByVal Size dsize, int flags, int borderMode, @ByVal(nullValue="cv::Scalar()") Scalar borderValue, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image. CV_8U , CV_16U , CV_32S , or CV_32F depth and 1, 3, or 4 channels are
supported.dst
- Destination image with the same type as src . The size is dsize .M
- *3x3* Mat or UMat transformation matrix.dsize
- Size of the destination image.flags
- Combination of interpolation methods (see resize ) and the optional flag
WARP_INVERSE_MAP specifying that M is the inverse transformation ( dst =\> src ). Only
INTER_NEAREST , INTER_LINEAR , and INTER_CUBIC interpolation methods are supported.borderMode
- borderValue
- stream
- Stream for the asynchronous version.
warpPerspective
@Namespace(value="cv::cuda") public static void warpPerspective(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Mat M, @ByVal Size dsize)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal Mat xmap, @ByVal Mat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
M
- *3x3* Mat or UMat transformation matrix.inverse
- Flag specifying that M is an inverse transformation ( dst=\>src ).dsize
- Size of the destination image.xmap
- X values with CV_32FC1 type.ymap
- Y values with CV_32FC1 type.stream
- Stream for the asynchronous version.
, cuda::remap
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal Mat xmap, @ByVal Mat ymap)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal UMat xmap, @ByVal UMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal UMat xmap, @ByVal UMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal GpuMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal GpuMat xmap, @ByVal GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal GpuMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByVal GpuMat xmap, @ByVal GpuMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal UMat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void buildWarpPerspectiveMaps(@ByVal Mat M, @Cast(value="bool") boolean inverse, @ByVal Size dsize, @ByRef GpuMat xmap, @ByRef GpuMat ymap)
@Namespace(value="cv::cuda") public static void rotate(@ByVal Mat src, @ByVal Mat dst, @ByVal Size dsize, double angle, double xShift, double yShift, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image. Supports 1, 3 or 4 channels images with CV_8U , CV_16U or CV_32F
depth.dst
- Destination image with the same type as src . The size is dsize .dsize
- Size of the destination image.angle
- Angle of rotation in degrees.xShift
- Shift along the horizontal axis.yShift
- Shift along the vertical axis.interpolation
- Interpolation method. Only INTER_NEAREST , INTER_LINEAR , and INTER_CUBIC
are supported.stream
- Stream for the asynchronous version.
cuda::warpAffine
@Namespace(value="cv::cuda") public static void rotate(@ByVal Mat src, @ByVal Mat dst, @ByVal Size dsize, double angle)
@Namespace(value="cv::cuda") public static void rotate(@ByVal UMat src, @ByVal UMat dst, @ByVal Size dsize, double angle, double xShift, double yShift, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void rotate(@ByVal UMat src, @ByVal UMat dst, @ByVal Size dsize, double angle)
@Namespace(value="cv::cuda") public static void rotate(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Size dsize, double angle, double xShift, double yShift, int interpolation, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void rotate(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal Size dsize, double angle)
@Namespace(value="cv::cuda") public static void pyrDown(@ByVal Mat src, @ByVal Mat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image.dst
- Destination image. Will have Size((src.cols+1)/2, (src.rows+1)/2) size and the same
type as src .stream
- Stream for the asynchronous version.
pyrDown
@Namespace(value="cv::cuda") public static void pyrDown(@ByVal UMat src, @ByVal UMat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void pyrDown(@ByVal GpuMat src, @ByVal GpuMat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void pyrDown(@ByVal GpuMat src, @ByVal GpuMat dst)
@Namespace(value="cv::cuda") public static void pyrUp(@ByVal Mat src, @ByVal Mat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
src
- Source image.dst
- Destination image. Will have Size(src.cols\*2, src.rows\*2) size and the same type as
src .stream
- Stream for the asynchronous version.@Namespace(value="cv::cuda") public static void pyrUp(@ByVal UMat src, @ByVal UMat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Namespace(value="cv::cuda") public static void pyrUp(@ByVal GpuMat src, @ByVal GpuMat dst, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
Copyright © 2020. All rights reserved.