[−][src]Trait opencv::features2d::prelude::Feature2DTrait
Required methods
pub fn as_raw_Feature2D(&self) -> *const c_void
[src]
pub fn as_raw_mut_Feature2D(&mut self) -> *mut c_void
[src]
Provided methods
pub fn detect(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
mask: &dyn ToInputArray
) -> Result<()>
[src]
&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()
pub fn detect_multiple(
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
masks: &dyn ToInputArray
) -> Result<()>
[src]
&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()
pub fn compute(
&mut self,
image: &dyn ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
[src]
&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.
pub fn compute_multiple(
&mut self,
images: &dyn ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
descriptors: &mut dyn ToOutputArray
) -> Result<()>
[src]
&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.
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]
&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>
[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()