Trait opencv::hub_prelude::BRISK

source ·
pub trait BRISK: BRISKConst + Feature2DTrait {
    // Required method
    fn as_raw_mut_BRISK(&mut self) -> *mut c_void;

    // Provided methods
    fn set_threshold(&mut self, threshold: i32) -> Result<()> { ... }
    fn set_octaves(&mut self, octaves: i32) -> Result<()> { ... }
    fn set_pattern_scale(&mut self, pattern_scale: f32) -> Result<()> { ... }
}
Expand description

Class implementing the BRISK keypoint detector and descriptor extractor, described in LCS11 .

Required Methods§

Provided Methods§

source

fn set_threshold(&mut self, threshold: i32) -> Result<()>

Set detection threshold.

Parameters
  • threshold: AGAST detection threshold score.
source

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

Set detection octaves.

Parameters
  • octaves: detection octaves. Use 0 to do single scale.
source

fn set_pattern_scale(&mut self, pattern_scale: f32) -> Result<()>

Set detection patternScale.

Parameters
  • patternScale: apply this scale to the pattern used for sampling the neighbourhood of a keypoint.

Implementations§

source§

impl dyn BRISK + '_

source

pub fn create( thresh: i32, octaves: i32, pattern_scale: f32 ) -> Result<Ptr<dyn BRISK>>

The BRISK constructor

Parameters
  • thresh: AGAST detection threshold score.
  • octaves: detection octaves. Use 0 to do single scale.
  • patternScale: apply this scale to the pattern used for sampling the neighbourhood of a keypoint.
C++ default parameters
  • thresh: 30
  • octaves: 3
  • pattern_scale: 1.0f
source

pub fn create_with_pattern( radius_list: &Vector<f32>, number_list: &Vector<i32>, d_max: f32, d_min: f32, index_change: &Vector<i32> ) -> Result<Ptr<dyn BRISK>>

The BRISK constructor for a custom pattern

Parameters
  • radiusList: defines the radii (in pixels) where the samples around a keypoint are taken (for keypoint scale 1).
  • numberList: defines the number of sampling points on the sampling circle. Must be the same size as radiusList..
  • dMax: threshold for the short pairings used for descriptor formation (in pixels for keypoint scale 1).
  • dMin: threshold for the long pairings used for orientation determination (in pixels for keypoint scale 1).
  • indexChange: index remapping of the bits.
C++ default parameters
  • d_max: 5.85f
  • d_min: 8.2f
  • index_change: std::vector()
source

pub fn create_with_pattern_threshold_octaves( thresh: i32, octaves: i32, radius_list: &Vector<f32>, number_list: &Vector<i32>, d_max: f32, d_min: f32, index_change: &Vector<i32> ) -> Result<Ptr<dyn BRISK>>

The BRISK constructor for a custom pattern, detection threshold and octaves

Parameters
  • thresh: AGAST detection threshold score.
  • octaves: detection octaves. Use 0 to do single scale.
  • radiusList: defines the radii (in pixels) where the samples around a keypoint are taken (for keypoint scale 1).
  • numberList: defines the number of sampling points on the sampling circle. Must be the same size as radiusList..
  • dMax: threshold for the short pairings used for descriptor formation (in pixels for keypoint scale 1).
  • dMin: threshold for the long pairings used for orientation determination (in pixels for keypoint scale 1).
  • indexChange: index remapping of the bits.
C++ default parameters
  • d_max: 5.85f
  • d_min: 8.2f
  • index_change: std::vector()

Implementors§

source§

impl BRISK for Ptr<dyn BRISK>