cvgabor.h
Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Mian Zhou   *
00003  *   M.Zhou@reading.ac.uk   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef CVGABOR_H
00021 #define CVGABOR_H
00022 
00023 #include <iostream>
00024 
00025 
00026 #include <cv.h>
00027 #include <highgui.h>
00028 using namespace std;
00029 
00030 #define PI 3.14159265
00031 #define FALSE 0
00032 #define TRUE 1
00033 #define CV_GABOR_REAL 1
00034 #define CV_GABOR_IMAG 2
00035 #define CV_GABOR_MAG  3
00036 #define CV_GABOR_PHASE 4
00037 
00041 class CvGabor{
00042 public:
00043     CvGabor();
00044 
00045     ~CvGabor();
00046 
00047      CvGabor(int iMu, int iNu);
00048      CvGabor(int iMu, int iNu, float dSigma);
00049      CvGabor(int iMu, int iNu, float dSigma, float dF);
00050      CvGabor(float dPhi, int iNu);
00051      CvGabor(float dPhi, int iNu, float dSigma);
00052      CvGabor(float dPhi, int iNu, float dSigma, float dF);
00053     bool IsInit();
00054     long mask_width();
00055     IplImage* get_image(int Type);
00056     bool IsKernelCreate();
00057     long get_mask_width();
00058     void Init(int iMu, int iNu, double dSigma, double dF);
00059     void Init(double dPhi, int iNu, double dSigma, double dF);
00060     void output_file(const char *filename, int Type);
00061     CvMat* get_matrix(int Type);
00062     void show(int Type);
00063     void conv_img(IplImage *src, IplImage *dst, int Type);
00064 
00065 protected:
00066     float Sigma;
00067     float F;
00068     float Kmax;
00069     float K;
00070     float Phi;
00071     bool bInitialised;
00072     bool bKernel;
00073     long Width;
00074     CvMat *Imag;
00075     CvMat *Real;
00076 private:
00077     void creat_kernel();
00078 
00079 };
00080 
00081 #endif


saliency_detection
Author(s): Joris van de Weem
autogenerated on Sun Jan 5 2014 11:07:22