Trait BinaryDescriptorTrait

Source
pub trait BinaryDescriptorTrait: AlgorithmTrait + BinaryDescriptorTraitConst {
    // Required method
    fn as_raw_mut_BinaryDescriptor(&mut self) -> *mut c_void;

    // Provided methods
    fn get_num_of_octaves(&mut self) -> Result<i32> { ... }
    fn set_num_of_octaves(&mut self, octaves: i32) -> Result<()> { ... }
    fn get_width_of_band(&mut self) -> Result<i32> { ... }
    fn set_width_of_band(&mut self, width: i32) -> Result<()> { ... }
    fn get_reduction_ratio(&mut self) -> Result<i32> { ... }
    fn set_reduction_ratio(&mut self, r_ratio: i32) -> Result<()> { ... }
    fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()> { ... }
    fn detect_1(
        &mut self,
        image: &impl MatTraitConst,
        keypoints: &mut Vector<KeyLine>,
        mask: &impl MatTraitConst,
    ) -> Result<()> { ... }
    fn detect_def_1(
        &mut self,
        image: &impl MatTraitConst,
        keypoints: &mut Vector<KeyLine>,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn get_num_of_octaves(&mut self) -> Result<i32>

Get current number of octaves

Source

fn set_num_of_octaves(&mut self, octaves: i32) -> Result<()>

Set number of octaves

§Parameters
  • octaves: number of octaves
Source

fn get_width_of_band(&mut self) -> Result<i32>

Get current width of bands

Source

fn set_width_of_band(&mut self, width: i32) -> Result<()>

Set width of bands

§Parameters
  • width: width of bands
Source

fn get_reduction_ratio(&mut self) -> Result<i32>

Get current reduction ratio (used in Gaussian pyramids)

Source

fn set_reduction_ratio(&mut self, r_ratio: i32) -> Result<()>

Set reduction ratio (used in Gaussian pyramids)

§Parameters
  • rRatio: reduction ratio
Source

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Read parameters from a FileNode object and store them

§Parameters
  • fn: source FileNode file
Source

fn detect_1( &mut self, image: &impl MatTraitConst, keypoints: &mut Vector<KeyLine>, mask: &impl MatTraitConst, ) -> Result<()>

Requires line detection

§Parameters
  • image: input image
  • keypoints: vector that will store extracted lines for one or more images
  • mask: mask matrix to detect only KeyLines of interest
§C++ default parameters
  • mask: Mat()
Source

fn detect_def_1( &mut self, image: &impl MatTraitConst, keypoints: &mut Vector<KeyLine>, ) -> Result<()>

Requires line detection

§Parameters
  • image: input image
  • keypoints: vector that will store extracted lines for one or more images
  • mask: mask matrix to detect only KeyLines of interest
§Note

This alternative version of [BinaryDescriptorTrait::detect] function uses the following default values for its arguments:

  • mask: Mat()

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§