Trait RgbdPlaneTrait

Source
pub trait RgbdPlaneTrait: AlgorithmTrait + RgbdPlaneTraitConst {
    // Required method
    fn as_raw_mut_RgbdPlane(&mut self) -> *mut c_void;

    // Provided methods
    fn apply(
        &mut self,
        points3d: &impl ToInputArray,
        normals: &impl ToInputArray,
        mask: &mut impl ToOutputArray,
        plane_coefficients: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn apply_1(
        &mut self,
        points3d: &impl ToInputArray,
        mask: &mut impl ToOutputArray,
        plane_coefficients: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
    fn set_block_size(&mut self, val: i32) -> Result<()> { ... }
    fn set_min_size(&mut self, val: i32) -> Result<()> { ... }
    fn set_method(&mut self, val: i32) -> Result<()> { ... }
    fn set_threshold(&mut self, val: f64) -> Result<()> { ... }
    fn set_sensor_error_a(&mut self, val: f64) -> Result<()> { ... }
    fn set_sensor_error_b(&mut self, val: f64) -> Result<()> { ... }
    fn set_sensor_error_c(&mut self, val: f64) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::rgbd::RgbdPlane

Required Methods§

Provided Methods§

Source

fn apply( &mut self, points3d: &impl ToInputArray, normals: &impl ToInputArray, mask: &mut impl ToOutputArray, plane_coefficients: &mut impl ToOutputArray, ) -> Result<()>

Find The planes in a depth image

§Parameters
  • points3d: the 3d points organized like the depth image: rows x cols with 3 channels
  • normals: the normals for every point in the depth image
  • mask: An image where each pixel is labeled with the plane it belongs to and 255 if it does not belong to any plane
  • plane_coefficients: the coefficients of the corresponding planes (a,b,c,d) such that ax+by+cz+d=0, norm(a,b,c)=1 and c < 0 (so that the normal points towards the camera)
Source

fn apply_1( &mut self, points3d: &impl ToInputArray, mask: &mut impl ToOutputArray, plane_coefficients: &mut impl ToOutputArray, ) -> Result<()>

Find The planes in a depth image but without doing a normal check, which is faster but less accurate

§Parameters
  • points3d: the 3d points organized like the depth image: rows x cols with 3 channels
  • mask: An image where each pixel is labeled with the plane it belongs to and 255 if it does not belong to any plane
  • plane_coefficients: the coefficients of the corresponding planes (a,b,c,d) such that ax+by+cz+d=0
Source

fn set_block_size(&mut self, val: i32) -> Result<()>

Source

fn set_min_size(&mut self, val: i32) -> Result<()>

Source

fn set_method(&mut self, val: i32) -> Result<()>

Source

fn set_threshold(&mut self, val: f64) -> Result<()>

Source

fn set_sensor_error_a(&mut self, val: f64) -> Result<()>

Source

fn set_sensor_error_b(&mut self, val: f64) -> Result<()>

Source

fn set_sensor_error_c(&mut self, val: f64) -> Result<()>

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§