opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

CylindricalWarper Class Reference

CylindricalWarper Class Reference
[Images Warping]

Warper that maps an image onto the x\*x + z\*z = 1 cylinder. More...

#include <warpers.hpp>

Inherits RotationWarperBase< CylindricalProjector >.

Inherited by CylindricalWarperGpu.

Public Member Functions

 CylindricalWarper (float scale)
 Construct an instance of the cylindrical 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 x\*x + z\*z = 1 cylinder.

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


Constructor & Destructor Documentation

CylindricalWarper ( float  scale )

Construct an instance of the cylindrical warper class.

Parameters:
scaleProjected image scale multiplier

Definition at line 252 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 RotationWarperBase< CylindricalProjector >.

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 RotationWarperBase< CylindricalProjector >.

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, inherited]

Projects the image point.

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

Implements RotationWarper.

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

Implements RotationWarper.