opencv::hub_prelude

Trait KeyPointTraitConst

Source
pub trait KeyPointTraitConst {
    // Required method
    fn as_raw_KeyPoint(&self) -> *const c_void;

    // Provided methods
    fn pt(&self) -> Point2f { ... }
    fn size(&self) -> f32 { ... }
    fn angle(&self) -> f32 { ... }
    fn response(&self) -> f32 { ... }
    fn octave(&self) -> i32 { ... }
    fn class_id(&self) -> i32 { ... }
    fn hash(&self) -> Result<size_t> { ... }
}
Expand description

Constant methods for core::KeyPoint

Required Methods§

Provided Methods§

Source

fn pt(&self) -> Point2f

coordinates of the keypoints

Source

fn size(&self) -> f32

diameter of the meaningful keypoint neighborhood

Source

fn angle(&self) -> f32

computed orientation of the keypoint (-1 if not applicable); it’s in [0,360) degrees and measured relative to image coordinate system, ie in clockwise.

Source

fn response(&self) -> f32

the response by which the most strong keypoints have been selected. Can be used for the further sorting or subsampling

Source

fn octave(&self) -> i32

octave (pyramid layer) from which the keypoint has been extracted

Source

fn class_id(&self) -> i32

object class (if the keypoints need to be clustered by an object they belong to)

Source

fn hash(&self) -> Result<size_t>

Implementors§