[][src]Trait opencv::prelude::PyRotationWarperTrait

pub trait PyRotationWarperTrait {
    fn as_raw_PyRotationWarper(&self) -> *mut c_void;

    fn warp_point(
        &mut self,
        pt: Point2f,
        k: &dyn ToInputArray,
        r: &dyn ToInputArray
    ) -> Result<Point2f> { ... }
fn build_maps(
        &mut self,
        src_size: Size,
        k: &dyn ToInputArray,
        r: &dyn ToInputArray,
        xmap: &mut dyn ToOutputArray,
        ymap: &mut dyn ToOutputArray
    ) -> Result<Rect> { ... }
fn warp(
        &mut self,
        src: &dyn ToInputArray,
        k: &dyn ToInputArray,
        r: &dyn ToInputArray,
        interp_mode: i32,
        border_mode: i32,
        dst: &mut dyn ToOutputArray
    ) -> Result<Point> { ... }
fn warp_backward(
        &mut self,
        src: &dyn ToInputArray,
        k: &dyn ToInputArray,
        r: &dyn ToInputArray,
        interp_mode: i32,
        border_mode: i32,
        dst_size: Size,
        dst: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn warp_roi(
        &mut self,
        src_size: Size,
        k: &dyn ToInputArray,
        r: &dyn ToInputArray
    ) -> Result<Rect> { ... }
fn get_scale(&self) -> Result<f32> { ... }
fn set_scale(&mut self, unnamed: f32) -> Result<()> { ... } }

Required methods

Loading content...

Provided methods

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

Projects the image point.

Parameters

  • pt: Source point
  • K: Camera intrinsic parameters
  • R: Camera rotation matrix

Returns

Projected point

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

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

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

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

fn warp_backward(
    &mut self,
    src: &dyn ToInputArray,
    k: &dyn ToInputArray,
    r: &dyn ToInputArray,
    interp_mode: i32,
    border_mode: i32,
    dst_size: Size,
    dst: &mut dyn ToOutputArray
) -> Result<()>

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

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

Parameters

  • src_size: Source image bounding box
  • K: Camera intrinsic parameters
  • R: Camera rotation matrix

Returns

Projected image minimum bounding box

fn get_scale(&self) -> Result<f32>

fn set_scale(&mut self, unnamed: f32) -> Result<()>

Loading content...

Implementors

impl PyRotationWarperTrait for PyRotationWarper[src]

Loading content...