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

    // Provided methods
    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<()> { ... }
}
Expand description

Mutable methods for crate::features2d::Feature2D

Required Methods§

Provided Methods§

source

fn detect( &mut self, image: &dyn ToInputArray, keypoints: &mut Vector<KeyPoint>, mask: &dyn ToInputArray ) -> Result<()>

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()
source

fn detect_multiple( &mut self, images: &dyn ToInputArray, keypoints: &mut Vector<Vector<KeyPoint>>, masks: &dyn ToInputArray ) -> Result<()>

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()
source

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

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.
source

fn compute_multiple( &mut self, images: &dyn ToInputArray, keypoints: &mut Vector<Vector<KeyPoint>>, descriptors: &mut dyn ToOutputArray ) -> Result<()>

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.
source

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<()>

Detects keypoints and computes the descriptors

C++ default parameters
  • use_provided_keypoints: false
source

fn read(&mut self, file_name: &str) -> Result<()>

source

fn read_1(&mut self, unnamed: &FileNode) -> Result<()>

Implementors§

source§

impl Feature2DTrait for Ptr<TEBLID>

source§

impl Feature2DTrait for Ptr<Feature2D>

source§

impl Feature2DTrait for Ptr<dyn AKAZE>

source§

impl Feature2DTrait for Ptr<dyn AffineFeature2D>

source§

impl Feature2DTrait for Ptr<dyn AffineFeature>

source§

impl Feature2DTrait for Ptr<dyn AgastFeatureDetector>

source§

impl Feature2DTrait for Ptr<dyn BEBLID>

source§

impl Feature2DTrait for Ptr<dyn BRISK>

source§

impl Feature2DTrait for Ptr<dyn BoostDesc>

source§

impl Feature2DTrait for Ptr<dyn BriefDescriptorExtractor>

source§

impl Feature2DTrait for Ptr<dyn CUDA_FastFeatureDetector>

source§

impl Feature2DTrait for Ptr<dyn CUDA_ORB>

source§

impl Feature2DTrait for Ptr<dyn DAISY>

source§

impl Feature2DTrait for Ptr<dyn FREAK>

source§

impl Feature2DTrait for Ptr<dyn FastFeatureDetector>

source§

impl Feature2DTrait for Ptr<dyn GFTTDetector>

source§

impl Feature2DTrait for Ptr<dyn HarrisLaplaceFeatureDetector>

source§

impl Feature2DTrait for Ptr<dyn KAZE>

source§

impl Feature2DTrait for Ptr<dyn LATCH>

source§

impl Feature2DTrait for Ptr<dyn LUCID>

source§

impl Feature2DTrait for Ptr<dyn MSDDetector>

source§

impl Feature2DTrait for Ptr<dyn MSER>

source§

impl Feature2DTrait for Ptr<dyn ORB>

source§

impl Feature2DTrait for Ptr<dyn SIFT>

source§

impl Feature2DTrait for Ptr<dyn SURF>

source§

impl Feature2DTrait for Ptr<dyn SimpleBlobDetector>

source§

impl Feature2DTrait for Ptr<dyn StarDetector>

source§

impl Feature2DTrait for Ptr<dyn TBMR>

source§

impl Feature2DTrait for Ptr<dyn VGG>

source§

impl Feature2DTrait for TEBLID

source§

impl Feature2DTrait for Feature2D