Set the image warper
obj.setWarper(warperType)
obj.setWarper(warperType, '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.
- PlaneWarperGpu (requires CUDA)
- 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.
- CylindricalWarperGpu (requires CUDA)
- SphericalWarper 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.
- SphericalWarperGpu (requires CUDA)
- FisheyeWarper
- StereographicWarper
- CompressedRectilinearWarper
- CompressedRectilinearPortraitWarper
- PaniniWarper
- PaniniPortraitWarper
- MercatorWarper
- TransverseMercatorWarper
Options
The following are options for the various warpers:
CompressedRectilinearWarper, CompressedRectilinearPortraitWarper, PaniniWarper, PaniniPortraitWarper
The class uses SphericalWarper by default.