@Name(value="cv::detail::SphericalWarper") @Properties(inherit=opencv_stitching.class) public class DetailSphericalWarper extends RotationWarper
Projects image onto unit sphere with origin at (0, 0, 0) and radius scale, measured in pixels. A 360 panorama would therefore have a resulting width of 2 * scale * PI pixels. Poles are located at (0, -1, 0) and (0, 1, 0) points.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DetailSphericalWarper(float scale)
\brief Construct an instance of the spherical warper class.
|
DetailSphericalWarper(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Rect |
buildMaps(Size src_size,
GpuMat K,
GpuMat R,
GpuMat xmap,
GpuMat ymap) |
Rect |
buildMaps(Size src_size,
Mat K,
Mat R,
Mat xmap,
Mat ymap)
\brief Builds the projection maps according to the given camera data.
|
Rect |
buildMaps(Size src_size,
UMat K,
UMat R,
UMat xmap,
UMat ymap) |
Point |
warp(GpuMat src,
GpuMat K,
GpuMat R,
int interp_mode,
int border_mode,
GpuMat dst) |
Point |
warp(Mat src,
Mat K,
Mat R,
int interp_mode,
int border_mode,
Mat dst)
\brief Projects the image.
|
Point |
warp(UMat src,
UMat K,
UMat R,
int interp_mode,
int border_mode,
UMat dst) |
getScale, setScale, warpBackward, warpBackward, warpBackward, warpPoint, warpPoint, warpPoint, warpRoi, warpRoi, warpRoiaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic DetailSphericalWarper(Pointer p)
Pointer.Pointer(Pointer).public DetailSphericalWarper(float scale)
scale - Radius of the projected sphere, in pixels. An image spanning the
whole sphere will have a width of 2 * scale * PI pixels.@ByVal public Rect buildMaps(@ByVal Size src_size, @ByVal Mat K, @ByVal Mat R, @ByVal Mat xmap, @ByVal Mat ymap)
RotationWarperbuildMaps in class RotationWarpersrc_size - Source image sizeK - Camera intrinsic parametersR - Camera rotation matrixxmap - 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 R, @ByVal UMat xmap, @ByVal UMat ymap)
buildMaps in class RotationWarper@ByVal public Rect buildMaps(@ByVal Size src_size, @ByVal GpuMat K, @ByVal GpuMat R, @ByVal GpuMat xmap, @ByVal GpuMat ymap)
buildMaps in class RotationWarper@ByVal public Point warp(@ByVal Mat src, @ByVal Mat K, @ByVal Mat R, int interp_mode, int border_mode, @ByVal Mat dst)
RotationWarperwarp in class RotationWarpersrc - Source imageK - Camera intrinsic parametersR - Camera rotation matrixinterp_mode - Interpolation modeborder_mode - Border extrapolation modedst - Projected image@ByVal public Point warp(@ByVal UMat src, @ByVal UMat K, @ByVal UMat R, int interp_mode, int border_mode, @ByVal UMat dst)
warp in class RotationWarperCopyright © 2020. All rights reserved.