gabor.h
Upload User: soukeisyuu
Upload Date: 2022-07-03
Package Size: 5943k
Code Size: 1k
Category:

Wavelet

Development Platform:

Visual C++

  1. #ifndef GABOR_H
  2. #define GABOR_H
  3. #include "cv.h"
  4. #include <stdio.h>
  5. #include <math.h>
  6. #include <ctype.h>
  7. #define PI 3.1415926
  8. #define min(x,y)  ( (x) < (y) ? (x):(y) )
  9. class CvGabor
  10. {
  11. public:
  12.     CvGabor();
  13.     ~CvGabor();
  14.     void initGabor(int s_fre,int s_ang,int aperture_size,float gaussian_sigma);
  15.     void doGabor(IplImage *src,IplImage *dst);
  16.     void doConv(CvMat *A,CvMat *B,CvMat* conv);
  17. private:
  18.     int s_fre;
  19.     int s_ang;
  20.     float freq;
  21.     float angle;
  22.     int aperture_size;
  23.     float gaussian_sigma;
  24. };
  25. #endif // GABOR_H