Class cv::detail::RotationWarper#

Rotation-only model image warper interface.

Collaboration diagram for cv::detail::RotationWarper:

Detailed Description#

Rotation-only model image warper interface.

Examples
samples/cpp/stitching_detailed.cpp.

Constructor & Destructor Documentation#

~RotationWarper()#

cv::detail::RotationWarper::~RotationWarper()

Member Function Documentation#

buildMaps()#

Rect cv::detail::RotationWarper::buildMaps(
Size src_size,
InputArray K,
InputArray R,
OutputArray xmap,
OutputArray ymap )

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

getScale()#

float cv::detail::RotationWarper::getScale()

setScale()#

void cv::detail::RotationWarper::setScale(float)

warp()#

Point cv::detail::RotationWarper::warp(
InputArray src,
InputArray K,
InputArray R,
int interp_mode,
int border_mode,
OutputArray dst )

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

warpBackward()#

void cv::detail::RotationWarper::warpBackward(
InputArray src,
InputArray K,
InputArray R,
int interp_mode,
int border_mode,
Size dst_size,
OutputArray dst )

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

warpPoint()#

Point2f cv::detail::RotationWarper::warpPoint(
const Point2f & pt,
InputArray K,
InputArray R )

Projects the image point.

Parameters

  • pt — Source point

  • K — Camera intrinsic parameters

  • R — Camera rotation matrix

Returns

Projected point

warpPointBackward()#

Point2f cv::detail::RotationWarper::warpPointBackward(
const Point2f & pt,
InputArray K,
InputArray R )

Projects the image point backward.

Parameters

  • pt — Projected point

  • K — Camera intrinsic parameters

  • R — Camera rotation matrix

Returns

Backward-projected point

warpRoi()#

Rect cv::detail::RotationWarper::warpRoi(
Size src_size,
InputArray K,
InputArray R )

Parameters

  • src_size — Source image bounding box

  • K — Camera intrinsic parameters

  • R — Camera rotation matrix

Returns

Projected image minimum bounding box

Source file#

The documentation for this class was generated from the following file: