opencv on mbed
SphericalWarper Class Reference
[Images Warping]
Warper that maps an image onto the unit sphere located at the origin. More...
#include <warpers.hpp>
Inherits RotationWarperBase< SphericalProjector >.
Inherited by SphericalWarperGpu.
Public Member Functions | |
SphericalWarper (float scale) | |
Construct an instance of the spherical warper class. | |
Rect | buildMaps (Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) |
Builds the projection maps according to the given camera data. | |
Point | warp (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst) |
Projects the image. | |
Point2f | warpPoint (const Point2f &pt, InputArray K, InputArray R) |
Projects the image point. | |
void | warpBackward (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, Size dst_size, OutputArray dst) |
Projects the image backward. | |
Rect | warpRoi (Size src_size, InputArray K, InputArray R) |
Detailed Description
Warper that maps an image onto the unit sphere located at the origin.
Projects image onto unit sphere with origin at (0, 0, 0). Poles are located at (0, -1, 0) and (0, 1, 0) points.
Definition at line 220 of file detail/warpers.hpp.
Constructor & Destructor Documentation
SphericalWarper | ( | float | scale ) |
Construct an instance of the spherical warper class.
- Parameters:
-
scale Projected image scale multiplier
Definition at line 227 of file detail/warpers.hpp.
Member Function Documentation
Rect buildMaps | ( | Size | src_size, |
InputArray | K, | ||
InputArray | R, | ||
OutputArray | xmap, | ||
OutputArray | ymap | ||
) | [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
Reimplemented from RotationWarperBase< SphericalProjector >.
Point warp | ( | InputArray | src, |
InputArray | K, | ||
InputArray | R, | ||
int | interp_mode, | ||
int | border_mode, | ||
OutputArray | dst | ||
) | [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
Reimplemented from RotationWarperBase< SphericalProjector >.
void warpBackward | ( | InputArray | src, |
InputArray | K, | ||
InputArray | R, | ||
int | interp_mode, | ||
int | border_mode, | ||
Size | dst_size, | ||
OutputArray | dst | ||
) | [virtual, inherited] |
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
Implements RotationWarper.
Point2f warpPoint | ( | const Point2f & | pt, |
InputArray | K, | ||
InputArray | R | ||
) | [virtual, inherited] |
Projects the image point.
- Parameters:
-
pt Source point K Camera intrinsic parameters R Camera rotation matrix
- Returns:
- Projected point
Implements RotationWarper.
Rect warpRoi | ( | Size | src_size, |
InputArray | K, | ||
InputArray | R | ||
) | [virtual, inherited] |
- Parameters:
-
src_size Source image bounding box K Camera intrinsic parameters R Camera rotation matrix
- Returns:
- Projected image minimum bounding box
Implements RotationWarper.
Generated on Tue Jul 12 2022 16:42:44 by 1.7.2