Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

AffineWarper Class Reference

Affine warper that uses rotations and translations. More...

#include <warpers.hpp>

Inherits cv::detail::PlaneWarper.

Public Member Functions

 AffineWarper (float scale=1.f)
 Construct an instance of the affine warper class.
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.
Rect warpRoi (Size src_size, InputArray K, InputArray R)
void warpBackward (InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, Size dst_size, OutputArray dst)
 Projects the image backward.

Protected Member Functions

void getRTfromHomogeneous (InputArray H, Mat &R, Mat &T)
 Extracts rotation and translation matrices from matrix H representing affine transformation in homogeneous coordinates.

Detailed Description

Affine warper that uses rotations and translations.

Uses affine transformation in homogeneous coordinates to represent both rotation and translation in camera rotation matrix.

Definition at line 213 of file detail/warpers.hpp.


Constructor & Destructor Documentation

AffineWarper ( float  scale = 1.f )

Construct an instance of the affine warper class.

Parameters:
scaleProjected image scale multiplier

Definition at line 220 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

Reimplemented from PlaneWarper.

void getRTfromHomogeneous ( InputArray  H,
Mat R,
Mat T 
) [protected]

Extracts rotation and translation matrices from matrix H representing affine transformation in homogeneous coordinates.

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

Reimplemented from PlaneWarper.

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:
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

Reimplemented from PlaneWarper.

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

Reimplemented from PlaneWarper.