opencv::prelude

Trait Detail_AffineWarperTrait

Source
pub trait Detail_AffineWarperTrait: Detail_AffineWarperTraitConst + Detail_PlaneWarperTrait {
    // Required method
    fn as_raw_mut_Detail_AffineWarper(&mut self) -> *mut c_void;

    // Provided methods
    fn warp_point(
        &mut self,
        pt: Point2f,
        k: &impl ToInputArray,
        h: &impl ToInputArray,
    ) -> Result<Point2f> { ... }
    fn warp_point_backward(
        &mut self,
        pt: Point2f,
        k: &impl ToInputArray,
        h: &impl ToInputArray,
    ) -> Result<Point2f> { ... }
    fn build_maps(
        &mut self,
        src_size: Size,
        k: &impl ToInputArray,
        h: &impl ToInputArray,
        xmap: &mut impl ToOutputArray,
        ymap: &mut impl ToOutputArray,
    ) -> Result<Rect> { ... }
    fn warp(
        &mut self,
        src: &impl ToInputArray,
        k: &impl ToInputArray,
        h: &impl ToInputArray,
        interp_mode: i32,
        border_mode: i32,
        dst: &mut impl ToOutputArray,
    ) -> Result<Point> { ... }
    fn warp_roi(
        &mut self,
        src_size: Size,
        k: &impl ToInputArray,
        h: &impl ToInputArray,
    ) -> Result<Rect> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn warp_point( &mut self, pt: Point2f, k: &impl ToInputArray, h: &impl ToInputArray, ) -> Result<Point2f>

Projects the image point.

§Parameters
  • pt: Source point
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters
§Returns

Projected point

Source

fn warp_point_backward( &mut self, pt: Point2f, k: &impl ToInputArray, h: &impl ToInputArray, ) -> Result<Point2f>

Projects the image point backward.

§Parameters
  • pt: Projected point
  • K: Camera intrinsic parameters
  • H: Camera extrinsic parameters
§Returns

Backward-projected point

Source

fn build_maps( &mut self, src_size: Size, k: &impl ToInputArray, h: &impl ToInputArray, xmap: &mut impl ToOutputArray, ymap: &mut impl ToOutputArray, ) -> Result<Rect>

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

Source

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

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

Source

fn warp_roi( &mut self, src_size: Size, k: &impl ToInputArray, h: &impl ToInputArray, ) -> Result<Rect>

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

Projected image minimum bounding box

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§