Path: blob/master/modules/features2d/src/kaze/AKAZEConfig.h
16337 views
/**1* @file AKAZEConfig.h2* @brief AKAZE configuration file3* @date Feb 23, 20144* @author Pablo F. Alcantarilla, Jesus Nuevo5*/67#ifndef __OPENCV_FEATURES_2D_AKAZE_CONFIG_H__8#define __OPENCV_FEATURES_2D_AKAZE_CONFIG_H__910namespace cv11{12/* ************************************************************************* */13/// AKAZE configuration options structure14struct AKAZEOptions {1516AKAZEOptions()17: omax(4)18, nsublevels(4)19, img_width(0)20, img_height(0)21, soffset(1.6f)22, derivative_factor(1.5f)23, sderivatives(1.0)24, diffusivity(KAZE::DIFF_PM_G2)2526, dthreshold(0.001f)27, min_dthreshold(0.00001f)2829, descriptor(AKAZE::DESCRIPTOR_MLDB)30, descriptor_size(0)31, descriptor_channels(3)32, descriptor_pattern_size(10)3334, kcontrast(0.001f)35, kcontrast_percentile(0.7f)36, kcontrast_nbins(300)37{38}3940int omax; ///< Maximum octave evolution of the image 2^sigma (coarsest scale sigma units)41int nsublevels; ///< Default number of sublevels per scale level42int img_width; ///< Width of the input image43int img_height; ///< Height of the input image44float soffset; ///< Base scale offset (sigma units)45float derivative_factor; ///< Factor for the multiscale derivatives46float sderivatives; ///< Smoothing factor for the derivatives47KAZE::DiffusivityType diffusivity; ///< Diffusivity type4849float dthreshold; ///< Detector response threshold to accept point50float min_dthreshold; ///< Minimum detector threshold to accept a point5152AKAZE::DescriptorType descriptor; ///< Type of descriptor53int descriptor_size; ///< Size of the descriptor in bits. 0->Full size54int descriptor_channels; ///< Number of channels in the descriptor (1, 2, 3)55int descriptor_pattern_size; ///< Actual patch size is 2*pattern_size*point.scale5657float kcontrast; ///< The contrast factor parameter58float kcontrast_percentile; ///< Percentile level for the contrast factor59int kcontrast_nbins; ///< Number of bins for the contrast factor histogram60};6162}6364#endif656667