Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

RotationWarperBase< P > Class Template Reference

RotationWarperBase< P > Class Template Reference
[Images Warping]

Base class for rotation-based warper using a detail::ProjectorBase_ derived class. More...

#include <warpers.hpp>

Inherits cv::detail::RotationWarper.

Public Member Functions

Point2f warpPoint (const Point2f &pt, InputArray K, InputArray R)
 Projects the image point.
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.
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

template<class P>
class cv::detail::RotationWarperBase< P >

Base class for rotation-based warper using a detail::ProjectorBase_ derived class.

Definition at line 141 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_sizeSource image size
KCamera intrinsic parameters
RCamera rotation matrix
xmapProjection map for the x axis
ymapProjection map for the y axis
Returns:
Projected image minimum bounding box

Implements RotationWarper.

Reimplemented in PlaneWarper, AffineWarper, SphericalWarper, and CylindricalWarper.

Point warp ( InputArray  src,
InputArray  K,
InputArray  R,
int  interp_mode,
int  border_mode,
OutputArray  dst 
) [virtual]

Projects the image.

Parameters:
srcSource image
KCamera intrinsic parameters
RCamera rotation matrix
interp_modeInterpolation mode
border_modeBorder extrapolation mode
dstProjected image
Returns:
Project image top-left corner

Implements RotationWarper.

Reimplemented in PlaneWarper, AffineWarper, SphericalWarper, and CylindricalWarper.

void warpBackward ( InputArray  src,
InputArray  K,
InputArray  R,
int  interp_mode,
int  border_mode,
Size  dst_size,
OutputArray  dst 
) [virtual]

Projects the image backward.

Parameters:
srcProjected image
KCamera intrinsic parameters
RCamera rotation matrix
interp_modeInterpolation mode
border_modeBorder extrapolation mode
dst_sizeBackward-projected image size
dstBackward-projected image

Implements RotationWarper.

Point2f warpPoint ( const Point2f pt,
InputArray  K,
InputArray  R 
) [virtual]

Projects the image point.

Parameters:
ptSource point
KCamera intrinsic parameters
RCamera rotation matrix
Returns:
Projected point

Implements RotationWarper.

Reimplemented in PlaneWarper, and AffineWarper.

Rect warpRoi ( Size  src_size,
InputArray  K,
InputArray  R 
) [virtual]
Parameters:
src_sizeSource image bounding box
KCamera intrinsic parameters
RCamera rotation matrix
Returns:
Projected image minimum bounding box

Implements RotationWarper.

Reimplemented in PlaneWarper, and AffineWarper.