Constructor
obj = cv.RotationWarper(warperType, scale)
obj = cv.RotationWarper(..., 'OptionName',optionValue, ...)
Input
- warperType image warper factory class type, used to create
the rotation-based warper. One of:
- PlaneWarper Plane warper factory class. Warper that maps
an image onto the
z = 1
plane.
- AffineWarper Affine warper factory class. Affine warper
that uses rotations and translations. Uses affine
transformation in homogeneous coordinates to represent both
rotation and translation in camera rotation matrix.
- CylindricalWarper Cylindrical warper factory class.
Warper that maps an image onto the
x*x + z*z = 1
cylinder.
- SphericalWarper Spherical warper factory class. Warper
that maps an image onto the unit sphere located at the
origin. 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.
- PlaneWarperGpu (requires CUDA)
- CylindricalWarperGpu (requires CUDA)
- SphericalWarperGpu (requires CUDA)
- FisheyeWarper
- StereographicWarper
- CompressedRectilinearWarper
- CompressedRectilinearPortraitWarper
- PaniniWarper
- PaniniPortraitWarper
- MercatorWarper
- TransverseMercatorWarper
- scale Projected image scale multiplier, e.g. 1.0
Options
The following are options for the various warpers:
CompressedRectilinearWarper
, CompressedRectilinearPortraitWarper
, PaniniWarper
, PaniniPortraitWarper