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

pub trait Feature2DTrait: AlgorithmTrait {
    pub fn as_raw_Feature2D(&self) -> *const c_void;
pub fn as_raw_mut_Feature2D(&mut self) -> *mut c_void; pub fn detect(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
        mask: &dyn ToInputArray
    ) -> Result<()> { ... }
pub fn detect_multiple(
        &mut self,
        images: &dyn ToInputArray,
        keypoints: &mut Vector<Vector<KeyPoint>>,
        masks: &dyn ToInputArray
    ) -> Result<()> { ... }
pub fn compute(
        &mut self,
        image: &dyn ToInputArray,
        keypoints: &mut Vector<KeyPoint>,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn compute_multiple(
        &mut self,
        images: &dyn ToInputArray,
        keypoints: &mut Vector<Vector<KeyPoint>>,
        descriptors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub 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<()> { ... }
pub fn descriptor_size(&self) -> Result<i32> { ... }
pub fn descriptor_type(&self) -> Result<i32> { ... }
pub fn default_norm(&self) -> Result<i32> { ... }
pub fn write(&self, file_name: &str) -> Result<()> { ... }
pub fn read(&mut self, file_name: &str) -> Result<()> { ... }
pub fn write_1(&self, unnamed: &mut FileStorage) -> Result<()> { ... }
pub fn read_1(&mut self, unnamed: &FileNode) -> Result<()> { ... }
pub fn empty(&self) -> Result<bool> { ... }
pub fn get_default_name(&self) -> Result<String> { ... }
pub fn write_2(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()> { ... } }

Required methods

Loading content...

Provided methods

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

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

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

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

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

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.

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

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.

pub 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<()>
[src]

Detects keypoints and computes the descriptors

C++ default parameters

  • use_provided_keypoints: false

pub fn descriptor_size(&self) -> Result<i32>[src]

pub fn descriptor_type(&self) -> Result<i32>[src]

pub fn default_norm(&self) -> Result<i32>[src]

pub fn write(&self, file_name: &str) -> Result<()>[src]

pub fn read(&mut self, file_name: &str) -> Result<()>[src]

pub fn write_1(&self, unnamed: &mut FileStorage) -> Result<()>[src]

pub fn read_1(&mut self, unnamed: &FileNode) -> Result<()>[src]

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

Return true if detector object is empty

pub fn get_default_name(&self) -> Result<String>[src]

pub fn write_2(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>[src]

C++ default parameters

  • name: String()
Loading content...

Implementors

impl Feature2DTrait for BRISK[src]

impl Feature2DTrait for Feature2D[src]

impl Feature2DTrait for SIFT[src]

impl Feature2DTrait for SimpleBlobDetector[src]

impl Feature2DTrait for BEBLID[src]

impl Feature2DTrait for BriefDescriptorExtractor[src]

impl Feature2DTrait for FREAK[src]

impl Feature2DTrait for HarrisLaplaceFeatureDetector[src]

impl Feature2DTrait for LATCH[src]

impl Feature2DTrait for LUCID[src]

impl Feature2DTrait for MSDDetector[src]

impl Feature2DTrait for StarDetector[src]

impl Feature2DTrait for PtrOfAKAZE[src]

impl Feature2DTrait for PtrOfAffineFeature2D[src]

impl Feature2DTrait for PtrOfAffineFeature[src]

impl Feature2DTrait for PtrOfAgastFeatureDetector[src]

impl Feature2DTrait for PtrOfBEBLID[src]

impl Feature2DTrait for PtrOfBRISK[src]

impl Feature2DTrait for PtrOfBoostDesc[src]

impl Feature2DTrait for PtrOfBriefDescriptorExtractor[src]

impl Feature2DTrait for PtrOfCUDA_FastFeatureDetector[src]

impl Feature2DTrait for PtrOfCUDA_ORB[src]

impl Feature2DTrait for PtrOfDAISY[src]

impl Feature2DTrait for PtrOfFREAK[src]

impl Feature2DTrait for PtrOfFastFeatureDetector[src]

impl Feature2DTrait for PtrOfFeature2D[src]

impl Feature2DTrait for PtrOfGFTTDetector[src]

impl Feature2DTrait for PtrOfHarrisLaplaceFeatureDetector[src]

impl Feature2DTrait for PtrOfKAZE[src]

impl Feature2DTrait for PtrOfLATCH[src]

impl Feature2DTrait for PtrOfLUCID[src]

impl Feature2DTrait for PtrOfMSDDetector[src]

impl Feature2DTrait for PtrOfMSER[src]

impl Feature2DTrait for PtrOfORB[src]

impl Feature2DTrait for PtrOfSIFT[src]

impl Feature2DTrait for PtrOfSURF[src]

impl Feature2DTrait for PtrOfSimpleBlobDetector[src]

impl Feature2DTrait for PtrOfStarDetector[src]

impl Feature2DTrait for PtrOfTBMR[src]

impl Feature2DTrait for PtrOfVGG[src]

Loading content...