Blame view

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