Skip to content

Instantly share code, notes, and snippets.

@GreenRecycleBin
Created October 11, 2011 06:17
Show Gist options
  • Select an option

  • Save GreenRecycleBin/1277413 to your computer and use it in GitHub Desktop.

Select an option

Save GreenRecycleBin/1277413 to your computer and use it in GitHub Desktop.
cvgabor
#ifndef CVGABOR_H
#define CVGABOR_H
#include "/usr/local/Cellar/opencv/2.3.1a/include/opencv2/opencv.hpp"
class CvGabor
{
public:
~CvGabor();
CvGabor(int orientation, int scale, double sigma);
CvGabor(int orientation, int scale, double sigma, double spatial_frequence);
CvGabor(double phi, int scale);
CvGabor(double phi, int scale, double sigma);
CvGabor(double phi, int scale, double sigma, double spatial_frequence);
double k_max() const;
long width() const;
private:
double sigma_;
double f_;
double k_;
double phi_;
CvMat *imaginary_matrix_;
CvMat *real_matrix_;
double default_sigma() const;
double default_f() const;
void Init(int scale, double sigma, double spatial_frequence);
void Init(int orientation, int scale, double sigma, double spatial_frequence);
void Init(double phi, int scale, double sigma, double spatial_frequence);
void create_kernel();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment