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_: &FileNode) -> Result<()> { ... }
    fn detect_1(
        &mut self,
        image: &Mat,
        keypoints: &mut Vector<KeyLine>,
        mask: &Mat
    ) -> Result<()> { ... }
    fn detect_def_1(
        &mut self,
        image: &Mat,
        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_: &FileNode) -> Result<()>

Read parameters from a FileNode object and store them

Parameters
  • fn: source FileNode file
source

fn detect_1( &mut self, image: &Mat, keypoints: &mut Vector<KeyLine>, mask: &Mat ) -> 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: &Mat, 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()

Object Safety§

This trait is not object safe.

Implementors§