[][src]Trait opencv::xfeatures2d::VGG

pub trait VGG: Feature2DTrait {
    pub fn as_raw_VGG(&self) -> *const c_void;
pub fn as_raw_mut_VGG(&mut self) -> *mut c_void; pub fn set_sigma(&mut self, isigma: f32) -> Result<()> { ... }
pub fn get_sigma(&self) -> Result<f32> { ... }
pub fn set_use_normalize_image(&mut self, img_normalize: bool) -> Result<()> { ... }
pub fn get_use_normalize_image(&self) -> Result<bool> { ... }
pub fn set_use_scale_orientation(
        &mut self,
        use_scale_orientation: bool
    ) -> Result<()> { ... }
pub fn get_use_scale_orientation(&self) -> Result<bool> { ... }
pub fn set_scale_factor(&mut self, scale_factor: f32) -> Result<()> { ... }
pub fn get_scale_factor(&self) -> Result<f32> { ... }
pub fn set_use_normalize_descriptor(
        &mut self,
        dsc_normalize: bool
    ) -> Result<()> { ... }
pub fn get_use_normalize_descriptor(&self) -> Result<bool> { ... } }

Class implementing VGG (Oxford Visual Geometry Group) descriptor trained end to end using "Descriptor Learning Using Convex Optimisation" (DLCO) aparatus described in Simonyan14.

Parameters

  • desc: type of descriptor to use, VGG::VGG_120 is default (120 dimensions float) Available types are VGG::VGG_120, VGG::VGG_80, VGG::VGG_64, VGG::VGG_48

  • isigma: gaussian kernel value for image blur (default is 1.4f)

  • img_normalize: use image sample intensity normalization (enabled by default)

  • use_orientation: sample patterns using keypoints orientation, enabled by default

  • scale_factor: adjust the sampling window of detected keypoints to 64.0f (VGG sampling window) 6.25f is default and fits for KAZE, SURF detected keypoints window ratio 6.75f should be the scale for SIFT detected keypoints window ratio 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio 0.75f should be the scale for ORB keypoints ratio

  • dsc_normalize: clamp descriptors to 255 and convert to uchar CV_8UC1 (disabled by default)

Required methods

pub fn as_raw_VGG(&self) -> *const c_void[src]

pub fn as_raw_mut_VGG(&mut self) -> *mut c_void[src]

Loading content...

Provided methods

pub fn set_sigma(&mut self, isigma: f32) -> Result<()>[src]

pub fn get_sigma(&self) -> Result<f32>[src]

pub fn set_use_normalize_image(&mut self, img_normalize: bool) -> Result<()>[src]

pub fn get_use_normalize_image(&self) -> Result<bool>[src]

pub fn set_use_scale_orientation(
    &mut self,
    use_scale_orientation: bool
) -> Result<()>
[src]

pub fn get_use_scale_orientation(&self) -> Result<bool>[src]

pub fn set_scale_factor(&mut self, scale_factor: f32) -> Result<()>[src]

pub fn get_scale_factor(&self) -> Result<f32>[src]

pub fn set_use_normalize_descriptor(
    &mut self,
    dsc_normalize: bool
) -> Result<()>
[src]

pub fn get_use_normalize_descriptor(&self) -> Result<bool>[src]

Loading content...

Implementations

impl<'_> dyn VGG + '_[src]

pub fn create(
    desc: i32,
    isigma: f32,
    img_normalize: bool,
    use_scale_orientation: bool,
    scale_factor: f32,
    dsc_normalize: bool
) -> Result<Ptr<dyn VGG>>
[src]

C++ default parameters

  • desc: VGG::VGG_120
  • isigma: 1.4f
  • img_normalize: true
  • use_scale_orientation: true
  • scale_factor: 6.25f
  • dsc_normalize: false

Implementors

impl VGG for PtrOfVGG[src]

Loading content...