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,
max_points: i32
) -> 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, max_points: i32 ) -> 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
- max_points: Maximum amount of returned points. In case if image contains more features, then the features with highest response are returned. Negative value means no limitation.
§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
- max_points: -1
sourcepub fn create_def() -> Result<Ptr<AKAZE>>
pub fn create_def() -> 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
- max_points: Maximum amount of returned points. In case if image contains more features, then the features with highest response are returned. Negative value means no limitation.
§Note
This alternative version of AKAZE::create function uses the following default values for its arguments:
- 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
- max_points: -1