Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
RotationWarper Class Reference
[Images Warping]
Rotation-only model image warper interface. More...
#include <warpers.hpp>
Inherited by RotationWarperBase< P >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< MercatorProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< PlanePortraitProjector >, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< StereographicProjector >, and RotationWarperBase< TransverseMercatorProjector >.
Public Member Functions | |
| virtual Point2f | warpPoint (const Point2f &pt, InputArray K, InputArray R)=0 |
| Projects the image point. | |
| 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 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 Rect | warpRoi (Size src_size, InputArray K, InputArray R)=0 |
Detailed Description
Rotation-only model image warper interface.
Definition at line 59 of file detail/warpers.hpp.
Member Function Documentation
| virtual Rect buildMaps | ( | Size | src_size, |
| InputArray | K, | ||
| InputArray | R, | ||
| OutputArray | xmap, | ||
| OutputArray | ymap | ||
| ) | [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 RotationWarperBase< P >, PlaneWarper, SphericalWarper, CylindricalWarper, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< StereographicProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< TransverseMercatorProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< MercatorProjector >, and RotationWarperBase< PlanePortraitProjector >.
| virtual Point warp | ( | InputArray | src, |
| InputArray | K, | ||
| InputArray | R, | ||
| int | interp_mode, | ||
| int | border_mode, | ||
| OutputArray | dst | ||
| ) | [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 RotationWarperBase< P >, PlaneWarper, SphericalWarper, CylindricalWarper, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< StereographicProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< TransverseMercatorProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< MercatorProjector >, and RotationWarperBase< PlanePortraitProjector >.
| virtual void warpBackward | ( | InputArray | src, |
| InputArray | K, | ||
| InputArray | R, | ||
| int | interp_mode, | ||
| int | border_mode, | ||
| Size | dst_size, | ||
| OutputArray | dst | ||
| ) | [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 RotationWarperBase< P >, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< StereographicProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< TransverseMercatorProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< MercatorProjector >, and RotationWarperBase< PlanePortraitProjector >.
| virtual Point2f warpPoint | ( | const Point2f & | pt, |
| InputArray | K, | ||
| InputArray | R | ||
| ) | [pure virtual] |
Projects the image point.
- Parameters:
-
pt Source point K Camera intrinsic parameters R Camera rotation matrix
- Returns:
- Projected point
Implemented in RotationWarperBase< P >, PlaneWarper, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< StereographicProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< TransverseMercatorProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< MercatorProjector >, and RotationWarperBase< PlanePortraitProjector >.
| virtual Rect warpRoi | ( | Size | src_size, |
| InputArray | K, | ||
| InputArray | R | ||
| ) | [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 RotationWarperBase< P >, PlaneWarper, RotationWarperBase< PlaneProjector >, RotationWarperBase< SphericalPortraitProjector >, RotationWarperBase< PaniniPortraitProjector >, RotationWarperBase< StereographicProjector >, RotationWarperBase< CompressedRectilinearProjector >, RotationWarperBase< SphericalProjector >, RotationWarperBase< FisheyeProjector >, RotationWarperBase< CompressedRectilinearPortraitProjector >, RotationWarperBase< PaniniProjector >, RotationWarperBase< TransverseMercatorProjector >, RotationWarperBase< CylindricalPortraitProjector >, RotationWarperBase< CylindricalProjector >, RotationWarperBase< MercatorProjector >, and RotationWarperBase< PlanePortraitProjector >.
Generated on Tue Jul 12 2022 16:42:44 by
1.7.2