[][src]Trait opencv::xfeatures2d::DAISY

pub trait DAISY: Feature2DTrait {
    fn as_raw_DAISY(&self) -> *mut c_void;

    fn compute(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut VectorOfKeyPoint,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn compute_1(
        &mut self,
        images: &dyn ToInputArray,
        keypoints: &mut VectorOfVectorOfKeyPoint,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn compute_2(
        &mut self,
        image: &dyn ToInputArray,
        roi: Rect,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn compute_3(
        &mut self,
        image: &dyn ToInputArray,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn get_descriptor(
        &self,
        y: f64,
        x: f64,
        orientation: i32,
        descriptor: &mut f32
    ) -> Result<()> { ... }
fn get_descriptor_1(
        &self,
        y: f64,
        x: f64,
        orientation: i32,
        descriptor: &mut f32,
        h: &mut f64
    ) -> Result<bool> { ... }
fn get_unnormalized_descriptor(
        &self,
        y: f64,
        x: f64,
        orientation: i32,
        descriptor: &mut f32
    ) -> Result<()> { ... }
fn get_unnormalized_descriptor_1(
        &self,
        y: f64,
        x: f64,
        orientation: i32,
        descriptor: &mut f32,
        h: &mut f64
    ) -> Result<bool> { ... } }

Class implementing DAISY descriptor, described in Tola10

Parameters

  • radius: radius of the descriptor at the initial scale
  • q_radius: amount of radial range division quantity
  • q_theta: amount of angular range division quantity
  • q_hist: amount of gradient orientations range division quantity
  • norm: choose descriptors normalization type, where DAISY::NRM_NONE will not do any normalization (default), DAISY::NRM_PARTIAL mean that histograms are normalized independently for L2 norm equal to 1.0, DAISY::NRM_FULL mean that descriptors are normalized for L2 norm equal to 1.0, DAISY::NRM_SIFT mean that descriptors are normalized for L2 norm equal to 1.0 but no individual one is bigger than 0.154 as in SIFT
  • H: optional 3x3 homography matrix used to warp the grid of daisy but sampling keypoints remains unwarped on image
  • interpolation: switch to disable interpolation for speed improvement at minor quality loss
  • use_orientation: sample patterns using keypoints orientation, disabled by default.

Required methods

Loading content...

Provided methods

fn compute(
    &mut self,
    image: &dyn ToInputArray,
    keypoints: &mut VectorOfKeyPoint,
    descriptors: &mut dyn ToOutputArray
) -> Result<()>

Parameters

  • image: image to extract descriptors
  • keypoints: of interest within image
  • descriptors: resulted descriptors array

fn compute_1(
    &mut self,
    images: &dyn ToInputArray,
    keypoints: &mut VectorOfVectorOfKeyPoint,
    descriptors: &mut dyn ToOutputArray
) -> Result<()>

fn compute_2(
    &mut self,
    image: &dyn ToInputArray,
    roi: Rect,
    descriptors: &mut dyn ToOutputArray
) -> Result<()>

Parameters

  • image: image to extract descriptors
  • roi: region of interest within image
  • descriptors: resulted descriptors array for roi image pixels

fn compute_3(
    &mut self,
    image: &dyn ToInputArray,
    descriptors: &mut dyn ToOutputArray
) -> Result<()>

Parameters

  • image: image to extract descriptors
  • descriptors: resulted descriptors array for all image pixels

fn get_descriptor(
    &self,
    y: f64,
    x: f64,
    orientation: i32,
    descriptor: &mut f32
) -> Result<()>

Parameters

  • y: position y on image
  • x: position x on image
  • orientation: orientation on image (0->360)
  • descriptor: supplied array for descriptor storage

fn get_descriptor_1(
    &self,
    y: f64,
    x: f64,
    orientation: i32,
    descriptor: &mut f32,
    h: &mut f64
) -> Result<bool>

Parameters

  • y: position y on image
  • x: position x on image
  • orientation: orientation on image (0->360)
  • descriptor: supplied array for descriptor storage
  • H: homography matrix for warped grid

fn get_unnormalized_descriptor(
    &self,
    y: f64,
    x: f64,
    orientation: i32,
    descriptor: &mut f32
) -> Result<()>

Parameters

  • y: position y on image
  • x: position x on image
  • orientation: orientation on image (0->360)
  • descriptor: supplied array for descriptor storage

fn get_unnormalized_descriptor_1(
    &self,
    y: f64,
    x: f64,
    orientation: i32,
    descriptor: &mut f32,
    h: &mut f64
) -> Result<bool>

Parameters

  • y: position y on image
  • x: position x on image
  • orientation: orientation on image (0->360)
  • descriptor: supplied array for descriptor storage
  • H: homography matrix for warped grid
Loading content...

Methods

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

pub fn create(
    radius: f32,
    q_radius: i32,
    q_theta: i32,
    q_hist: i32,
    norm: DAISY_NormalizationType,
    h: &dyn ToInputArray,
    interpolation: bool,
    use_orientation: bool
) -> Result<PtrOfDAISY>
[src]

C++ default parameters

  • radius: 15
  • q_radius: 3
  • q_theta: 8
  • q_hist: 8
  • norm: DAISY::NRM_NONE
  • h: noArray()
  • interpolation: true
  • use_orientation: false

Implementors

impl DAISY for PtrOfDAISY[src]

Loading content...