Trait opencv::features2d::prelude::Feature2DTrait[][src]

pub trait Feature2DTrait: AlgorithmTrait + Feature2DTraitConst {
    fn as_raw_mut_Feature2D(&mut self) -> *mut c_void;

    fn detect(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
        mask: &dyn ToInputArray
    ) -> Result<()> { ... }
fn detect_multiple(
        &mut self,
        images: &dyn ToInputArray,
        keypoints: &mut Vector<Vector<KeyPoint>>,
        masks: &dyn ToInputArray
    ) -> Result<()> { ... }
fn compute(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn compute_multiple(
        &mut self,
        images: &dyn ToInputArray,
        keypoints: &mut Vector<Vector<KeyPoint>>,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn detect_and_compute(
        &mut self,
        image: &dyn ToInputArray,
        mask: &dyn ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
        descriptors: &mut dyn ToOutputArray,
        use_provided_keypoints: bool
    ) -> Result<()> { ... }
fn read(&mut self, file_name: &str) -> Result<()> { ... }
fn read_1(&mut self, unnamed: &FileNode) -> Result<()> { ... } }

Required methods

Provided methods

Detects keypoints in an image (first variant) or image set (second variant).

Parameters
  • image: Image.
  • keypoints: The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
  • mask: Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.
C++ default parameters
  • mask: noArray()

Detects keypoints in an image (first variant) or image set (second variant).

Parameters
  • image: Image.
  • keypoints: The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
  • mask: Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.
Overloaded parameters
  • images: Image set.
  • keypoints: The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .
  • masks: Masks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].
C++ default parameters
  • masks: noArray()

Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).

Parameters
  • image: Image.
  • keypoints: Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).
  • descriptors: Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).

Parameters
  • image: Image.
  • keypoints: Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).
  • descriptors: Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.
Overloaded parameters
  • images: Image set.
  • keypoints: Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).
  • descriptors: Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Detects keypoints and computes the descriptors

C++ default parameters
  • use_provided_keypoints: false

Implementors