[][src]Trait opencv::stitching::Detail_AffineWarperTrait

pub trait Detail_AffineWarperTrait: Detail_PlaneWarperTrait {
    pub fn as_raw_Detail_AffineWarper(&self) -> *const c_void;
pub fn as_raw_mut_Detail_AffineWarper(&mut self) -> *mut c_void; pub fn warp_point(
        &mut self,
        pt: Point2f,
        k: &dyn ToInputArray,
        h: &dyn ToInputArray
    ) -> Result<Point2f> { ... }
pub fn warp_point_backward(
        &mut self,
        pt: Point2f,
        k: &dyn ToInputArray,
        h: &dyn ToInputArray
    ) -> Result<Point2f> { ... }
pub fn build_maps(
        &mut self,
        src_size: Size,
        k: &dyn ToInputArray,
        h: &dyn ToInputArray,
        xmap: &mut dyn ToOutputArray,
        ymap: &mut dyn ToOutputArray
    ) -> Result<Rect> { ... }
pub fn warp(
        &mut self,
        src: &dyn ToInputArray,
        k: &dyn ToInputArray,
        h: &dyn ToInputArray,
        interp_mode: i32,
        border_mode: i32,
        dst: &mut dyn ToOutputArray
    ) -> Result<Point> { ... }
pub fn warp_roi(
        &mut self,
        src_size: Size,
        k: &dyn ToInputArray,
        h: &dyn ToInputArray
    ) -> Result<Rect> { ... } }

Affine warper that uses rotations and translations

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

Required methods

Loading content...

Provided methods

pub fn warp_point(
    &mut self,
    pt: Point2f,
    k: &dyn ToInputArray,
    h: &dyn ToInputArray
) -> Result<Point2f>
[src]

Projects the image point.

Parameters

  • pt: Source point
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters

Returns

Projected point

pub fn warp_point_backward(
    &mut self,
    pt: Point2f,
    k: &dyn ToInputArray,
    h: &dyn ToInputArray
) -> Result<Point2f>
[src]

Projects the image point backward.

Parameters

  • pt: Projected point
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters

Returns

Backward-projected point

pub fn build_maps(
    &mut self,
    src_size: Size,
    k: &dyn ToInputArray,
    h: &dyn ToInputArray,
    xmap: &mut dyn ToOutputArray,
    ymap: &mut dyn ToOutputArray
) -> Result<Rect>
[src]

Builds the projection maps according to the given camera data.

Parameters

  • src_size: Source image size
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters
  • xmap: Projection map for the x axis
  • ymap: Projection map for the y axis

Returns

Projected image minimum bounding box

pub fn warp(
    &mut self,
    src: &dyn ToInputArray,
    k: &dyn ToInputArray,
    h: &dyn ToInputArray,
    interp_mode: i32,
    border_mode: i32,
    dst: &mut dyn ToOutputArray
) -> Result<Point>
[src]

Projects the image.

Parameters

  • src: Source image
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters
  • interp_mode: Interpolation mode
  • border_mode: Border extrapolation mode
  • dst: Projected image

Returns

Project image top-left corner

pub fn warp_roi(
    &mut self,
    src_size: Size,
    k: &dyn ToInputArray,
    h: &dyn ToInputArray
) -> Result<Rect>
[src]

Parameters

  • src_size: Source image bounding box
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters

Returns

Projected image minimum bounding box

Loading content...

Implementors

Loading content...