Struct opencv::features2d::AKAZE
source · pub struct AKAZE { /* private fields */ }
Expand description
Class implementing the AKAZE keypoint detector and descriptor extractor, described in ANB13.
@details AKAZE descriptors can only be used with KAZE or AKAZE keypoints. This class is thread-safe.
Note: When you need descriptors use Feature2D::detectAndCompute, which provides better performance. When using Feature2D::detect followed by Feature2D::compute scale space pyramid is computed twice.
Note: AKAZE implements T-API. When image is passed as UMat some parts of the algorithm will use OpenCL.
Note: [ANB13] Fast Explicit Diffusion for Accelerated Features in Nonlinear Scale Spaces. Pablo F. Alcantarilla, Jesús Nuevo and Adrien Bartoli. In British Machine Vision Conference (BMVC), Bristol, UK, September 2013.
Implementations§
source§impl AKAZE
impl AKAZE
sourcepub fn create(
descriptor_type: AKAZE_DescriptorType,
descriptor_size: i32,
descriptor_channels: i32,
threshold: f32,
n_octaves: i32,
n_octave_layers: i32,
diffusivity: KAZE_DiffusivityType
) -> Result<Ptr<AKAZE>>
pub fn create( descriptor_type: AKAZE_DescriptorType, descriptor_size: i32, descriptor_channels: i32, threshold: f32, n_octaves: i32, n_octave_layers: i32, diffusivity: KAZE_DiffusivityType ) -> Result<Ptr<AKAZE>>
The AKAZE constructor
Parameters
- descriptor_type: Type of the extracted descriptor: DESCRIPTOR_KAZE, DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
- descriptor_size: Size of the descriptor in bits. 0 -> Full size
- descriptor_channels: Number of channels in the descriptor (1, 2, 3)
- threshold: Detector response threshold to accept point
- nOctaves: Maximum octave evolution of the image
- nOctaveLayers: Default number of sublevels per scale level
- diffusivity: Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or DIFF_CHARBONNIER
C++ default parameters
- descriptor_type: AKAZE::DESCRIPTOR_MLDB
- descriptor_size: 0
- descriptor_channels: 3
- threshold: 0.001f
- n_octaves: 4
- n_octave_layers: 4
- diffusivity: KAZE::DIFF_PM_G2
Trait Implementations§
source§impl AKAZETrait for AKAZE
impl AKAZETrait for AKAZE
fn as_raw_mut_AKAZE(&mut self) -> *mut c_void
fn set_descriptor_type(&mut self, dtype: AKAZE_DescriptorType) -> Result<()>
fn set_descriptor_size(&mut self, dsize: i32) -> Result<()>
fn set_descriptor_channels(&mut self, dch: i32) -> Result<()>
fn set_threshold(&mut self, threshold: f64) -> Result<()>
fn set_n_octaves(&mut self, octaves: i32) -> Result<()>
fn set_n_octave_layers(&mut self, octave_layers: i32) -> Result<()>
fn set_diffusivity(&mut self, diff: KAZE_DiffusivityType) -> Result<()>
source§impl AKAZETraitConst for AKAZE
impl AKAZETraitConst for AKAZE
fn as_raw_AKAZE(&self) -> *const c_void
fn get_descriptor_type(&self) -> Result<AKAZE_DescriptorType>
fn get_descriptor_size(&self) -> Result<i32>
fn get_descriptor_channels(&self) -> Result<i32>
fn get_threshold(&self) -> Result<f64>
fn get_n_octaves(&self) -> Result<i32>
fn get_n_octave_layers(&self) -> Result<i32>
fn get_diffusivity(&self) -> Result<KAZE_DiffusivityType>
fn get_default_name(&self) -> Result<String>
source§impl AlgorithmTrait for AKAZE
impl AlgorithmTrait for AKAZE
source§impl AlgorithmTraitConst for AKAZE
impl AlgorithmTraitConst for AKAZE
fn as_raw_Algorithm(&self) -> *const c_void
source§fn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
Stores algorithm parameters in a file storage Read more
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
@deprecated Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl Boxed for AKAZE
impl Boxed for AKAZE
source§impl Feature2DTrait for AKAZE
impl Feature2DTrait for AKAZE
fn as_raw_mut_Feature2D(&mut self) -> *mut c_void
source§fn detect(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<KeyPoint>,
mask: &impl ToInputArray
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, keypoints: &mut Vector<KeyPoint>, mask: &impl ToInputArray ) -> Result<()>
Detects keypoints in an image (first variant) or image set (second variant). Read more
source§fn detect_multiple(
&mut self,
images: &impl ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
masks: &impl ToInputArray
) -> Result<()>
fn detect_multiple( &mut self, images: &impl ToInputArray, keypoints: &mut Vector<Vector<KeyPoint>>, masks: &impl ToInputArray ) -> Result<()>
Detects keypoints in an image (first variant) or image set (second variant). Read more
source§fn compute(
&mut self,
image: &impl ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut impl ToOutputArray
) -> Result<()>
fn compute( &mut self, image: &impl ToInputArray, keypoints: &mut Vector<KeyPoint>, descriptors: &mut impl ToOutputArray ) -> Result<()>
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set
(second variant). Read more
source§fn compute_multiple(
&mut self,
images: &impl ToInputArray,
keypoints: &mut Vector<Vector<KeyPoint>>,
descriptors: &mut impl ToOutputArray
) -> Result<()>
fn compute_multiple( &mut self, images: &impl ToInputArray, keypoints: &mut Vector<Vector<KeyPoint>>, descriptors: &mut impl ToOutputArray ) -> Result<()>
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set
(second variant). Read more
source§fn detect_and_compute(
&mut self,
image: &impl ToInputArray,
mask: &impl ToInputArray,
keypoints: &mut Vector<KeyPoint>,
descriptors: &mut impl ToOutputArray,
use_provided_keypoints: bool
) -> Result<()>
fn detect_and_compute( &mut self, image: &impl ToInputArray, mask: &impl ToInputArray, keypoints: &mut Vector<KeyPoint>, descriptors: &mut impl ToOutputArray, use_provided_keypoints: bool ) -> Result<()>
Detects keypoints and computes the descriptors Read more
fn read(&mut self, file_name: &str) -> Result<()>
fn read_1(&mut self, unnamed: &FileNode) -> Result<()>
source§impl Feature2DTraitConst for AKAZE
impl Feature2DTraitConst for AKAZE
fn as_raw_Feature2D(&self) -> *const c_void
fn descriptor_size(&self) -> Result<i32>
fn descriptor_type(&self) -> Result<i32>
fn default_norm(&self) -> Result<i32>
fn write(&self, file_name: &str) -> Result<()>
fn write_1(&self, unnamed: &mut FileStorage) -> Result<()>
fn get_default_name(&self) -> Result<String>
fn write_2(&self, fs: &mut FileStorage, name: &str) -> Result<()>
fn write_3(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
impl Send for AKAZE
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more