Rotation-only model image warper interface. More...
#include <opencv2/stitching/detail/warpers.hpp>
Public Member Functions | |
virtual | ~RotationWarper () |
virtual Rect | buildMaps (Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap)=0 |
Builds the projection maps according to the given camera data. | |
virtual float | getScale () const |
virtual void | setScale (float) |
virtual Point | warp (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst)=0 |
Projects the image. | |
virtual void | warpBackward (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, Size dst_size, OutputArray dst)=0 |
Projects the image backward. | |
virtual Point2f | warpPoint (const Point2f &pt, InputArray K, InputArray R)=0 |
Projects the image point. | |
virtual Point2f | warpPointBackward (const Point2f &pt, InputArray K, InputArray R)=0 |
Projects the image point backward. | |
virtual Rect | warpRoi (Size src_size, InputArray K, InputArray R)=0 |
Detailed Description
Rotation-only model image warper interface.
Constructor & Destructor Documentation
◆ ~RotationWarper()
|
inlinevirtual |
Member Function Documentation
◆ buildMaps()
|
pure virtual |
Builds the projection maps according to the given camera data.
- Parameters
-
src_size Source image size K Camera intrinsic parameters R Camera rotation matrix xmap Projection map for the x axis ymap Projection map for the y axis
- Returns
- Projected image minimum bounding box
Implemented in cv::detail::AffineWarper, cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, cv::detail::RotationWarperBase< TransverseMercatorProjector >, cv::detail::PlaneWarper, cv::detail::SphericalWarper, cv::detail::CylindricalWarper, cv::detail::PlaneWarperGpu, cv::detail::SphericalWarperGpu, and cv::detail::CylindricalWarperGpu.
◆ getScale()
|
inlinevirtual |
Reimplemented in cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, and cv::detail::RotationWarperBase< TransverseMercatorProjector >.
◆ setScale()
|
inlinevirtual |
Reimplemented in cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, and cv::detail::RotationWarperBase< TransverseMercatorProjector >.
◆ warp()
|
pure virtual |
Projects the image.
- Parameters
-
src Source image K Camera intrinsic parameters R Camera rotation matrix interp_mode Interpolation mode border_mode Border extrapolation mode dst Projected image
- Returns
- Project image top-left corner
Implemented in cv::detail::AffineWarper, cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, cv::detail::RotationWarperBase< TransverseMercatorProjector >, cv::detail::PlaneWarper, cv::detail::SphericalWarper, cv::detail::CylindricalWarper, cv::detail::PlaneWarperGpu, cv::detail::SphericalWarperGpu, and cv::detail::CylindricalWarperGpu.
◆ warpBackward()
|
pure virtual |
Projects the image backward.
- Parameters
-
src Projected image K Camera intrinsic parameters R Camera rotation matrix interp_mode Interpolation mode border_mode Border extrapolation mode dst_size Backward-projected image size dst Backward-projected image
Implemented in cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, and cv::detail::RotationWarperBase< TransverseMercatorProjector >.
◆ warpPoint()
|
pure virtual |
Projects the image point.
- Parameters
-
pt Source point K Camera intrinsic parameters R Camera rotation matrix
- Returns
- Projected point
Implemented in cv::detail::AffineWarper, cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, cv::detail::RotationWarperBase< TransverseMercatorProjector >, and cv::detail::PlaneWarper.
◆ warpPointBackward()
|
pure virtual |
Projects the image point backward.
- Parameters
-
pt Projected point K Camera intrinsic parameters R Camera rotation matrix
- Returns
- Backward-projected point
Implemented in cv::detail::AffineWarper, cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, cv::detail::RotationWarperBase< TransverseMercatorProjector >, and cv::detail::PlaneWarper.
◆ warpRoi()
|
pure virtual |
- Parameters
-
src_size Source image bounding box K Camera intrinsic parameters R Camera rotation matrix
- Returns
- Projected image minimum bounding box
Implemented in cv::detail::AffineWarper, cv::detail::RotationWarperBase< P >, cv::detail::RotationWarperBase< CompressedRectilinearPortraitProjector >, cv::detail::RotationWarperBase< CompressedRectilinearProjector >, cv::detail::RotationWarperBase< CylindricalPortraitProjector >, cv::detail::RotationWarperBase< CylindricalProjector >, cv::detail::RotationWarperBase< FisheyeProjector >, cv::detail::RotationWarperBase< MercatorProjector >, cv::detail::RotationWarperBase< PaniniPortraitProjector >, cv::detail::RotationWarperBase< PaniniProjector >, cv::detail::RotationWarperBase< PlanePortraitProjector >, cv::detail::RotationWarperBase< PlaneProjector >, cv::detail::RotationWarperBase< SphericalPortraitProjector >, cv::detail::RotationWarperBase< SphericalProjector >, cv::detail::RotationWarperBase< StereographicProjector >, cv::detail::RotationWarperBase< TransverseMercatorProjector >, and cv::detail::PlaneWarper.
The documentation for this class was generated from the following file:
- opencv2/stitching/detail/warpers.hpp