Trait opencv::hub_prelude::FREAK

source ·
pub trait FREAK: Feature2DTrait + FREAKConst {
    // Required method
    fn as_raw_mut_FREAK(&mut self) -> *mut c_void;

    // Provided methods
    fn set_orientation_normalized(
        &mut self,
        orientation_normalized: bool
    ) -> Result<()> { ... }
    fn set_scale_normalized(&mut self, scale_normalized: bool) -> Result<()> { ... }
    fn set_pattern_scale(&mut self, pattern_scale: f64) -> Result<()> { ... }
    fn set_n_octaves(&mut self, n_octaves: i32) -> Result<()> { ... }
}
Expand description

Class implementing the FREAK (Fast Retina Keypoint) keypoint descriptor, described in AOV12 .

The algorithm propose a novel keypoint descriptor inspired by the human visual system and more precisely the retina, coined Fast Retina Key- point (FREAK). A cascade of binary strings is computed by efficiently comparing image intensities over a retinal sampling pattern. FREAKs are in general faster to compute with lower memory load and also more robust than SIFT, SURF or BRISK. They are competitive alternatives to existing keypoints in particular for embedded applications.

Note:

  • An example on how to use the FREAK descriptor can be found at opencv_source_code/samples/cpp/freak_demo.cpp

Required Methods§

Provided Methods§

source

fn set_orientation_normalized( &mut self, orientation_normalized: bool ) -> Result<()>

source

fn set_scale_normalized(&mut self, scale_normalized: bool) -> Result<()>

source

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

source

fn set_n_octaves(&mut self, n_octaves: i32) -> Result<()>

Implementations§

source§

impl dyn FREAK + '_

source

pub const NB_SCALES: i32 = 64i32

source

pub const NB_PAIRS: i32 = 512i32

source

pub const NB_ORIENPAIRS: i32 = 45i32

source

pub fn create( orientation_normalized: bool, scale_normalized: bool, pattern_scale: f32, n_octaves: i32, selected_pairs: &Vector<i32> ) -> Result<Ptr<dyn FREAK>>

Parameters
  • orientationNormalized: Enable orientation normalization.
  • scaleNormalized: Enable scale normalization.
  • patternScale: Scaling of the description pattern.
  • nOctaves: Number of octaves covered by the detected keypoints.
  • selectedPairs: (Optional) user defined selected pairs indexes,
C++ default parameters
  • orientation_normalized: true
  • scale_normalized: true
  • pattern_scale: 22.0f
  • n_octaves: 4
  • selected_pairs: std::vector()

Implementors§

source§

impl FREAK for Ptr<dyn FREAK>