github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/opencv4/include/opencv2/imgproc/hal/hal.hpp (about)

     1  #ifndef CV_IMGPROC_HAL_HPP
     2  #define CV_IMGPROC_HAL_HPP
     3  
     4  #include "opencv2/core/cvdef.h"
     5  #include "opencv2/core/cvstd.hpp"
     6  #include "opencv2/core/hal/interface.h"
     7  
     8  namespace cv { namespace hal {
     9  
    10  //! @addtogroup imgproc_hal_functions
    11  //! @{
    12  
    13  //---------------------------
    14  //! @cond IGNORED
    15  
    16  struct CV_EXPORTS Filter2D
    17  {
    18      CV_DEPRECATED static Ptr<hal::Filter2D> create(uchar * , size_t , int ,
    19                                       int , int ,
    20                                       int , int ,
    21                                       int , int ,
    22                                       int , double ,
    23                                       int , int ,
    24                                       bool , bool );
    25      virtual void apply(uchar * , size_t ,
    26                         uchar * , size_t ,
    27                         int , int ,
    28                         int , int ,
    29                         int , int ) = 0;
    30      virtual ~Filter2D() {}
    31  };
    32  
    33  struct CV_EXPORTS SepFilter2D
    34  {
    35      CV_DEPRECATED static Ptr<hal::SepFilter2D> create(int , int , int ,
    36                                          uchar * , int ,
    37                                          uchar * , int ,
    38                                          int , int ,
    39                                          double , int );
    40      virtual void apply(uchar * , size_t ,
    41                         uchar * , size_t ,
    42                         int , int ,
    43                         int , int ,
    44                         int , int ) = 0;
    45      virtual ~SepFilter2D() {}
    46  };
    47  
    48  
    49  struct CV_EXPORTS Morph
    50  {
    51      CV_DEPRECATED static Ptr<hal::Morph> create(int , int , int , int , int ,
    52                                      int , uchar * , size_t ,
    53                                      int , int ,
    54                                      int , int ,
    55                                      int , const double *,
    56                                      int , bool , bool );
    57      virtual void apply(uchar * , size_t , uchar * , size_t , int , int ,
    58                         int , int , int , int ,
    59                         int , int , int , int ) = 0;
    60      virtual ~Morph() {}
    61  };
    62  
    63  //! @endcond
    64  //---------------------------
    65  
    66  CV_EXPORTS void filter2D(int stype, int dtype, int kernel_type,
    67                           uchar * src_data, size_t src_step,
    68                           uchar * dst_data, size_t dst_step,
    69                           int width, int height,
    70                           int full_width, int full_height,
    71                           int offset_x, int offset_y,
    72                           uchar * kernel_data, size_t kernel_step,
    73                           int kernel_width, int kernel_height,
    74                           int anchor_x, int anchor_y,
    75                           double delta, int borderType,
    76                           bool isSubmatrix);
    77  
    78  CV_EXPORTS void sepFilter2D(int stype, int dtype, int ktype,
    79                              uchar * src_data, size_t src_step,
    80                              uchar * dst_data, size_t dst_step,
    81                              int width, int height,
    82                              int full_width, int full_height,
    83                              int offset_x, int offset_y,
    84                              uchar * kernelx_data, int kernelx_len,
    85                              uchar * kernely_data, int kernely_len,
    86                              int anchor_x, int anchor_y,
    87                              double delta, int borderType);
    88  
    89  CV_EXPORTS void morph(int op, int src_type, int dst_type,
    90                        uchar * src_data, size_t src_step,
    91                        uchar * dst_data, size_t dst_step,
    92                        int width, int height,
    93                        int roi_width, int roi_height, int roi_x, int roi_y,
    94                        int roi_width2, int roi_height2, int roi_x2, int roi_y2,
    95                        int kernel_type, uchar * kernel_data, size_t kernel_step,
    96                        int kernel_width, int kernel_height, int anchor_x, int anchor_y,
    97                        int borderType, const double borderValue[4],
    98                        int iterations, bool isSubmatrix);
    99  
   100  
   101  CV_EXPORTS void resize(int src_type,
   102                         const uchar * src_data, size_t src_step, int src_width, int src_height,
   103                         uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
   104                         double inv_scale_x, double inv_scale_y, int interpolation);
   105  
   106  CV_EXPORTS void warpAffine(int src_type,
   107                             const uchar * src_data, size_t src_step, int src_width, int src_height,
   108                             uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
   109                             const double M[6], int interpolation, int borderType, const double borderValue[4]);
   110  
   111  CV_EXPORTS void warpPerspective(int src_type,
   112                                 const uchar * src_data, size_t src_step, int src_width, int src_height,
   113                                 uchar * dst_data, size_t dst_step, int dst_width, int dst_height,
   114                                 const double M[9], int interpolation, int borderType, const double borderValue[4]);
   115  
   116  CV_EXPORTS void cvtBGRtoBGR(const uchar * src_data, size_t src_step,
   117                              uchar * dst_data, size_t dst_step,
   118                              int width, int height,
   119                              int depth, int scn, int dcn, bool swapBlue);
   120  
   121  CV_EXPORTS void cvtBGRtoBGR5x5(const uchar * src_data, size_t src_step,
   122                                 uchar * dst_data, size_t dst_step,
   123                                 int width, int height,
   124                                 int scn, bool swapBlue, int greenBits);
   125  
   126  CV_EXPORTS void cvtBGR5x5toBGR(const uchar * src_data, size_t src_step,
   127                                 uchar * dst_data, size_t dst_step,
   128                                 int width, int height,
   129                                 int dcn, bool swapBlue, int greenBits);
   130  
   131  CV_EXPORTS void cvtBGRtoGray(const uchar * src_data, size_t src_step,
   132                               uchar * dst_data, size_t dst_step,
   133                               int width, int height,
   134                               int depth, int scn, bool swapBlue);
   135  
   136  CV_EXPORTS void cvtGraytoBGR(const uchar * src_data, size_t src_step,
   137                               uchar * dst_data, size_t dst_step,
   138                               int width, int height,
   139                               int depth, int dcn);
   140  
   141  CV_EXPORTS void cvtBGR5x5toGray(const uchar * src_data, size_t src_step,
   142                                  uchar * dst_data, size_t dst_step,
   143                                  int width, int height,
   144                                  int greenBits);
   145  
   146  CV_EXPORTS void cvtGraytoBGR5x5(const uchar * src_data, size_t src_step,
   147                                  uchar * dst_data, size_t dst_step,
   148                                  int width, int height,
   149                                  int greenBits);
   150  CV_EXPORTS void cvtBGRtoYUV(const uchar * src_data, size_t src_step,
   151                              uchar * dst_data, size_t dst_step,
   152                              int width, int height,
   153                              int depth, int scn, bool swapBlue, bool isCbCr);
   154  
   155  CV_EXPORTS void cvtYUVtoBGR(const uchar * src_data, size_t src_step,
   156                              uchar * dst_data, size_t dst_step,
   157                              int width, int height,
   158                              int depth, int dcn, bool swapBlue, bool isCbCr);
   159  
   160  CV_EXPORTS void cvtBGRtoXYZ(const uchar * src_data, size_t src_step,
   161                              uchar * dst_data, size_t dst_step,
   162                              int width, int height,
   163                              int depth, int scn, bool swapBlue);
   164  
   165  CV_EXPORTS void cvtXYZtoBGR(const uchar * src_data, size_t src_step,
   166                              uchar * dst_data, size_t dst_step,
   167                              int width, int height,
   168                              int depth, int dcn, bool swapBlue);
   169  
   170  CV_EXPORTS void cvtBGRtoHSV(const uchar * src_data, size_t src_step,
   171                              uchar * dst_data, size_t dst_step,
   172                              int width, int height,
   173                              int depth, int scn, bool swapBlue, bool isFullRange, bool isHSV);
   174  
   175  CV_EXPORTS void cvtHSVtoBGR(const uchar * src_data, size_t src_step,
   176                              uchar * dst_data, size_t dst_step,
   177                              int width, int height,
   178                              int depth, int dcn, bool swapBlue, bool isFullRange, bool isHSV);
   179  
   180  CV_EXPORTS void cvtBGRtoLab(const uchar * src_data, size_t src_step,
   181                              uchar * dst_data, size_t dst_step,
   182                              int width, int height,
   183                              int depth, int scn, bool swapBlue, bool isLab, bool srgb);
   184  
   185  CV_EXPORTS void cvtLabtoBGR(const uchar * src_data, size_t src_step,
   186                              uchar * dst_data, size_t dst_step,
   187                              int width, int height,
   188                              int depth, int dcn, bool swapBlue, bool isLab, bool srgb);
   189  
   190  CV_EXPORTS void cvtTwoPlaneYUVtoBGR(const uchar * src_data, size_t src_step,
   191                                      uchar * dst_data, size_t dst_step,
   192                                      int dst_width, int dst_height,
   193                                      int dcn, bool swapBlue, int uIdx);
   194  
   195  //! Separate Y and UV planes
   196  CV_EXPORTS void cvtTwoPlaneYUVtoBGR(const uchar * y_data, const uchar * uv_data, size_t src_step,
   197                                      uchar * dst_data, size_t dst_step,
   198                                      int dst_width, int dst_height,
   199                                      int dcn, bool swapBlue, int uIdx);
   200  
   201  CV_EXPORTS void cvtThreePlaneYUVtoBGR(const uchar * src_data, size_t src_step,
   202                                        uchar * dst_data, size_t dst_step,
   203                                        int dst_width, int dst_height,
   204                                        int dcn, bool swapBlue, int uIdx);
   205  
   206  CV_EXPORTS void cvtBGRtoThreePlaneYUV(const uchar * src_data, size_t src_step,
   207                                        uchar * dst_data, size_t dst_step,
   208                                        int width, int height,
   209                                        int scn, bool swapBlue, int uIdx);
   210  
   211  //! Separate Y and UV planes
   212  CV_EXPORTS void cvtBGRtoTwoPlaneYUV(const uchar * src_data, size_t src_step,
   213                                      uchar * y_data, uchar * uv_data, size_t dst_step,
   214                                      int width, int height,
   215                                      int scn, bool swapBlue, int uIdx);
   216  
   217  CV_EXPORTS void cvtOnePlaneYUVtoBGR(const uchar * src_data, size_t src_step,
   218                                      uchar * dst_data, size_t dst_step,
   219                                      int width, int height,
   220                                      int dcn, bool swapBlue, int uIdx, int ycn);
   221  
   222  CV_EXPORTS void cvtRGBAtoMultipliedRGBA(const uchar * src_data, size_t src_step,
   223                                          uchar * dst_data, size_t dst_step,
   224                                          int width, int height);
   225  
   226  CV_EXPORTS void cvtMultipliedRGBAtoRGBA(const uchar * src_data, size_t src_step,
   227                                          uchar * dst_data, size_t dst_step,
   228                                          int width, int height);
   229  
   230  CV_EXPORTS void integral(int depth, int sdepth, int sqdepth,
   231                           const uchar* src, size_t srcstep,
   232                           uchar* sum, size_t sumstep,
   233                           uchar* sqsum, size_t sqsumstep,
   234                           uchar* tilted, size_t tstep,
   235                           int width, int height, int cn);
   236  
   237  //! @}
   238  
   239  }}
   240  
   241  #endif // CV_IMGPROC_HAL_HPP