pub trait AffineFeature: AffineFeatureConst + Feature2DTrait {
    // Required method
    fn as_raw_mut_AffineFeature(&mut self) -> *mut c_void;

    // Provided method
    fn set_view_params(
        &mut self,
        tilts: &Vector<f32>,
        rolls: &Vector<f32>
    ) -> Result<()> { ... }
}
Expand description

Class for implementing the wrapper which makes detectors and extractors to be affine invariant, described as ASIFT in YM11 .

Required Methods§

Provided Methods§

source

fn set_view_params( &mut self, tilts: &Vector<f32>, rolls: &Vector<f32> ) -> Result<()>

Implementations§

source§

impl dyn AffineFeature + '_

source

pub fn create( backend: &Ptr<Feature2D>, max_tilt: i32, min_tilt: i32, tilt_step: f32, rotate_step_base: f32 ) -> Result<Ptr<dyn AffineFeature>>

Parameters
  • backend: The detector/extractor you want to use as backend.
  • maxTilt: The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
  • minTilt: The lowest power index of tilt factor. 0 is used in the paper.
  • tiltStep: Tilt sampling step inline formula in Algorithm 1 in the paper.
  • rotateStepBase: Rotation sampling step factor b in Algorithm 1 in the paper.
C++ default parameters
  • max_tilt: 5
  • min_tilt: 0
  • tilt_step: 1.4142135623730951f
  • rotate_step_base: 72

Implementors§