@Namespace(value="cv::detail") @Properties(inherit=opencv_stitching.class) public class AffineWarper extends DetailPlaneWarper
Uses affine transformation in homogeneous coordinates to represent both rotation and translation in camera rotation matrix.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AffineWarper() |
AffineWarper(float scale)
\brief Construct an instance of the affine warper class.
|
AffineWarper(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Rect |
buildMaps(Size src_size,
GpuMat K,
GpuMat H,
GpuMat xmap,
GpuMat ymap) |
Rect |
buildMaps(Size src_size,
Mat K,
Mat H,
Mat xmap,
Mat ymap)
\brief Builds the projection maps according to the given camera data.
|
Rect |
buildMaps(Size src_size,
UMat K,
UMat H,
UMat xmap,
UMat ymap) |
Point |
warp(GpuMat src,
GpuMat K,
GpuMat H,
int interp_mode,
int border_mode,
GpuMat dst) |
Point |
warp(Mat src,
Mat K,
Mat H,
int interp_mode,
int border_mode,
Mat dst)
\brief Projects the image.
|
Point |
warp(UMat src,
UMat K,
UMat H,
int interp_mode,
int border_mode,
UMat dst) |
Point2f |
warpPoint(Point2f pt,
GpuMat K,
GpuMat H) |
Point2f |
warpPoint(Point2f pt,
Mat K,
Mat H)
\brief Projects the image point.
|
Point2f |
warpPoint(Point2f pt,
UMat K,
UMat H) |
Point2f |
warpPointBackward(Point2f pt,
GpuMat K,
GpuMat H) |
Point2f |
warpPointBackward(Point2f pt,
Mat K,
Mat H)
\brief Projects the image point backward.
|
Point2f |
warpPointBackward(Point2f pt,
UMat K,
UMat H) |
Rect |
warpRoi(Size src_size,
GpuMat K,
GpuMat H) |
Rect |
warpRoi(Size src_size,
Mat K,
Mat H) |
Rect |
warpRoi(Size src_size,
UMat K,
UMat H) |
buildMaps, buildMaps, buildMaps, warp, warp, warp, warpPoint, warpPoint, warpPoint, warpPointBackward, warpPointBackward, warpPointBackward, warpRoi, warpRoi, warpRoi
getScale, setScale, warpBackward, warpBackward, warpBackward
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public AffineWarper(Pointer p)
Pointer(Pointer)
.public AffineWarper(float scale)
scale
- Projected image scale multiplierpublic AffineWarper()
@ByVal public Point2f warpPoint(@Const @ByRef Point2f pt, @ByVal Mat K, @ByVal Mat H)
warpPoint
in class DetailPlaneWarper
pt
- Source pointK
- Camera intrinsic parametersH
- Camera extrinsic parameters@ByVal public Point2f warpPoint(@Const @ByRef Point2f pt, @ByVal UMat K, @ByVal UMat H)
warpPoint
in class DetailPlaneWarper
@ByVal public Point2f warpPoint(@Const @ByRef Point2f pt, @ByVal GpuMat K, @ByVal GpuMat H)
warpPoint
in class DetailPlaneWarper
@ByVal public Point2f warpPointBackward(@Const @ByRef Point2f pt, @ByVal Mat K, @ByVal Mat H)
warpPointBackward
in class DetailPlaneWarper
pt
- Projected pointK
- Camera intrinsic parametersH
- Camera extrinsic parameters@ByVal public Point2f warpPointBackward(@Const @ByRef Point2f pt, @ByVal UMat K, @ByVal UMat H)
warpPointBackward
in class DetailPlaneWarper
@ByVal public Point2f warpPointBackward(@Const @ByRef Point2f pt, @ByVal GpuMat K, @ByVal GpuMat H)
warpPointBackward
in class DetailPlaneWarper
@ByVal public Rect buildMaps(@ByVal Size src_size, @ByVal Mat K, @ByVal Mat H, @ByVal Mat xmap, @ByVal Mat ymap)
buildMaps
in class DetailPlaneWarper
src_size
- Source image sizeK
- Camera intrinsic parametersH
- Camera extrinsic parametersxmap
- Projection map for the x axisymap
- Projection map for the y axis@ByVal public Rect buildMaps(@ByVal Size src_size, @ByVal UMat K, @ByVal UMat H, @ByVal UMat xmap, @ByVal UMat ymap)
buildMaps
in class DetailPlaneWarper
@ByVal public Rect buildMaps(@ByVal Size src_size, @ByVal GpuMat K, @ByVal GpuMat H, @ByVal GpuMat xmap, @ByVal GpuMat ymap)
buildMaps
in class DetailPlaneWarper
@ByVal public Point warp(@ByVal Mat src, @ByVal Mat K, @ByVal Mat H, int interp_mode, int border_mode, @ByVal Mat dst)
warp
in class DetailPlaneWarper
src
- Source imageK
- Camera intrinsic parametersH
- Camera extrinsic parametersinterp_mode
- Interpolation modeborder_mode
- Border extrapolation modedst
- Projected image@ByVal public Point warp(@ByVal UMat src, @ByVal UMat K, @ByVal UMat H, int interp_mode, int border_mode, @ByVal UMat dst)
warp
in class DetailPlaneWarper
@ByVal public Point warp(@ByVal GpuMat src, @ByVal GpuMat K, @ByVal GpuMat H, int interp_mode, int border_mode, @ByVal GpuMat dst)
warp
in class DetailPlaneWarper
@ByVal public Rect warpRoi(@ByVal Size src_size, @ByVal Mat K, @ByVal Mat H)
warpRoi
in class DetailPlaneWarper
src_size
- Source image bounding boxK
- Camera intrinsic parametersH
- Camera extrinsic parameters@ByVal public Rect warpRoi(@ByVal Size src_size, @ByVal UMat K, @ByVal UMat H)
warpRoi
in class DetailPlaneWarper
Copyright © 2024. All rights reserved.