Yash Chainani | 5458dea | 2022-06-29 21:05:02 -0700 | [diff] [blame] | 1 | /** |
| 2 | * @file AKAZEConfig.h |
| 3 | * @brief AKAZE configuration file |
| 4 | * @date Feb 23, 2014 |
| 5 | * @author Pablo F. Alcantarilla, Jesus Nuevo |
| 6 | */ |
| 7 | |
| 8 | #ifndef __OPENCV_FEATURES_2D_AKAZE_CONFIG_H__ |
| 9 | #define __OPENCV_FEATURES_2D_AKAZE_CONFIG_H__ |
| 10 | |
| 11 | #include <opencv2/features2d.hpp> |
| 12 | |
| 13 | namespace cv { |
| 14 | /* ************************************************************************* */ |
| 15 | /// AKAZE configuration options structure |
| 16 | struct AKAZEOptionsV2 { |
| 17 | AKAZEOptionsV2() |
| 18 | : omax(4), |
| 19 | nsublevels(4), |
| 20 | img_width(0), |
| 21 | img_height(0), |
| 22 | soffset(1.6f), |
| 23 | derivative_factor(1.5f), |
| 24 | sderivatives(1.0), |
| 25 | diffusivity(KAZE::DIFF_PM_G2) |
| 26 | |
| 27 | , |
| 28 | dthreshold(0.001f), |
| 29 | min_dthreshold(0.00001f) |
| 30 | |
| 31 | , |
| 32 | descriptor(AKAZE::DESCRIPTOR_MLDB), |
| 33 | descriptor_size(0), |
| 34 | descriptor_channels(3), |
| 35 | descriptor_pattern_size(10) |
| 36 | |
| 37 | , |
| 38 | kcontrast_percentile(0.7f), |
| 39 | kcontrast_nbins(300) {} |
| 40 | |
| 41 | int omax; ///< Maximum octave evolution of the image 2^sigma (coarsest scale |
| 42 | ///< sigma units) |
| 43 | int nsublevels; ///< Default number of sublevels per scale level |
| 44 | int img_width; ///< Width of the input image |
| 45 | int img_height; ///< Height of the input image |
| 46 | float soffset; ///< Base scale offset (sigma units) |
| 47 | float derivative_factor; ///< Factor for the multiscale derivatives |
| 48 | float sderivatives; ///< Smoothing factor for the derivatives |
| 49 | int diffusivity; ///< Diffusivity type |
| 50 | |
| 51 | float dthreshold; ///< Detector response threshold to accept point |
| 52 | float min_dthreshold; ///< Minimum detector threshold to accept a point |
| 53 | |
| 54 | int descriptor; ///< Type of descriptor |
| 55 | int descriptor_size; ///< Size of the descriptor in bits. 0->Full size |
| 56 | int descriptor_channels; ///< Number of channels in the descriptor (1, 2, 3) |
| 57 | int descriptor_pattern_size; ///< Actual patch size is |
| 58 | ///< 2*pattern_size*point.scale |
| 59 | |
| 60 | float kcontrast_percentile; ///< Percentile level for the contrast factor |
| 61 | int kcontrast_nbins; ///< Number of bins for the contrast factor histogram |
| 62 | }; |
| 63 | |
| 64 | } // namespace cv |
| 65 | |
| 66 | #endif |