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§
fn as_raw_mut_BRISK(&mut self) -> *mut c_void
Provided Methods§
sourcefn set_threshold(&mut self, threshold: i32) -> Result<()>
fn set_threshold(&mut self, threshold: i32) -> Result<()>
sourcefn set_octaves(&mut self, octaves: i32) -> Result<()>
fn set_octaves(&mut self, octaves: i32) -> Result<()>
sourcefn set_pattern_scale(&mut self, pattern_scale: f32) -> Result<()>
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 + '_
impl dyn BRISK + '_
sourcepub fn create(
thresh: i32,
octaves: i32,
pattern_scale: f32
) -> Result<Ptr<dyn BRISK>>
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
sourcepub 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>>
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
()
sourcepub 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>>
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
()