Public Member Functions | Protected Attributes | Private Member Functions
CvGabor Class Reference

#include <cvgabor.h>

List of all members.

Public Member Functions

void conv_img (IplImage *src, IplImage *dst, int Type)
 CvGabor ()
 CvGabor (int iMu, int iNu)
 CvGabor (int iMu, int iNu, float dSigma)
 CvGabor (int iMu, int iNu, float dSigma, float dF)
 CvGabor (float dPhi, int iNu)
 CvGabor (float dPhi, int iNu, float dSigma)
 CvGabor (float dPhi, int iNu, float dSigma, float dF)
IplImage * get_image (int Type)
long get_mask_width ()
CvMat * get_matrix (int Type)
void Init (int iMu, int iNu, double dSigma, double dF)
void Init (double dPhi, int iNu, double dSigma, double dF)
bool IsInit ()
bool IsKernelCreate ()
long mask_width ()
void output_file (const char *filename, int Type)
void show (int Type)
 ~CvGabor ()

Protected Attributes

bool bInitialised
bool bKernel
float F
CvMat * Imag
float K
float Kmax
float Phi
CvMat * Real
float Sigma
long Width

Private Member Functions

void creat_kernel ()

Detailed Description

Author:
Mian Zhou

Definition at line 41 of file cvgabor.h.


Constructor & Destructor Documentation

Definition at line 24 of file cvgabor.cpp.

Definition at line 29 of file cvgabor.cpp.

CvGabor::CvGabor ( int  iMu,
int  iNu 
)

Construct a gabor

Parameters: iMu The orientation iMu*PI/8, iNu The scale,

Returns: None,

Create a gabor with a orientation iMu*PI/8, and with a scale iNu. The sigma (Sigma) and the spatial frequence (F) are set to 2*PI and sqrt(2) defaultly. It calls Init() to generate parameters and kernels.

Definition at line 49 of file cvgabor.cpp.

CvGabor::CvGabor ( int  iMu,
int  iNu,
float  dSigma 
)

Definition at line 73 of file cvgabor.cpp.

CvGabor::CvGabor ( int  iMu,
int  iNu,
float  dSigma,
float  dF 
)

Definition at line 95 of file cvgabor.cpp.

CvGabor::CvGabor ( float  dPhi,
int  iNu 
)

Definition at line 116 of file cvgabor.cpp.

CvGabor::CvGabor ( float  dPhi,
int  iNu,
float  dSigma 
)

Definition at line 139 of file cvgabor.cpp.

CvGabor::CvGabor ( float  dPhi,
int  iNu,
float  dSigma,
float  dF 
)

Definition at line 162 of file cvgabor.cpp.


Member Function Documentation

void CvGabor::conv_img ( IplImage *  src,
IplImage *  dst,
int  Type 
)

Definition at line 569 of file cvgabor.cpp.

void CvGabor::creat_kernel ( ) [private]

Create gabor kernel

Parameters: None

Returns: None

Create 2 gabor kernels - REAL and IMAG, with an orientation and a scale

Definition at line 231 of file cvgabor.cpp.

IplImage * CvGabor::get_image ( int  Type)

Get the speific type of image of Gabor

Parameters: Type The Type of gabor kernel, e.g. REAL, IMAG, MAG, PHASE

Returns: Pointer to image structure, or NULL on failure

Return an Image (gandalf image class) with a specific Type "REAL" "IMAG" "MAG" "PHASE"

Todo:
Todo:

Definition at line 289 of file cvgabor.cpp.

Reads the width of Mask

Parameters: None

Returns: Pointer to long type width of mask.

Definition at line 391 of file cvgabor.cpp.

CvMat * CvGabor::get_matrix ( int  Type)

Get a matrix by the type of kernel

Parameters: Type The type of kernel, e.g. REAL, IMAG, MAG, PHASE

Returns: Pointer to matrix structure, or NULL on failure.

Return the gabor kernel.

Definition at line 486 of file cvgabor.cpp.

void CvGabor::Init ( int  iMu,
int  iNu,
double  dSigma,
double  dF 
)

Initilize the.gabor

Parameters: iMu The orientations which is iMu*PI.8 iNu The scale can be from -5 to infinit dSigma The Sigma value of gabor, Normally set to 2*PI dF The spatial frequence , normally is sqrt(2)

Returns:

Initilize the.gabor with the orientation iMu, the scale iNu, the sigma dSigma, the frequency dF, it will call the function creat_kernel(); So a gabor is created.

Definition at line 411 of file cvgabor.cpp.

void CvGabor::Init ( double  dPhi,
int  iNu,
double  dSigma,
double  dF 
)

Initilize the.gabor

Parameters: dPhi The orientations iNu The scale can be from -5 to infinit dSigma The Sigma value of gabor, Normally set to 2*PI dF The spatial frequence , normally is sqrt(2)

Returns: None

Initilize the.gabor with the orientation dPhi, the scale iNu, the sigma dSigma, the frequency dF, it will call the function creat_kernel(); So a gabor is created.filename The name of the image file file_format The format of the file, e.g. GAN_PNG_FORMAT image The image structure to be written to the file octrlstr Format-dependent control structure

Definition at line 452 of file cvgabor.cpp.

bool CvGabor::IsInit ( )

Determine the gabor is initilised or not

Parameters: None

Returns: a boolean value, TRUE is initilised or FALSE is non-initilised.

Determine whether the gabor has been initlized - variables F, K, Kmax, Phi, Sigma are filled.

Definition at line 180 of file cvgabor.cpp.

Determine the gabor kernel is created or not

Parameters: None

Returns: a boolean value, TRUE is created or FALSE is non-created.

Determine whether a gabor kernel is created.

Definition at line 374 of file cvgabor.cpp.

Give out the width of the mask

Parameters: None

Returns: The long type show the width.

Return the width of mask (should be NxN) by the value of Sigma and iNu.

Definition at line 198 of file cvgabor.cpp.

void CvGabor::output_file ( const char *  filename,
int  Type 
)

Writes a gabor kernel as an image file.

Parameters: filename The name of the image file file_format The format of the file, e.g. GAN_PNG_FORMAT Type The Type of gabor kernel, e.g. REAL, IMAG, MAG, PHASE Returns: None

Writes an image from the provided image structure into the given file and the type of gabor kernel.

Definition at line 523 of file cvgabor.cpp.

void CvGabor::show ( int  Type)

Definition at line 546 of file cvgabor.cpp.


Member Data Documentation

bool CvGabor::bInitialised [protected]

Definition at line 71 of file cvgabor.h.

bool CvGabor::bKernel [protected]

Definition at line 72 of file cvgabor.h.

float CvGabor::F [protected]

Definition at line 67 of file cvgabor.h.

CvMat* CvGabor::Imag [protected]

Definition at line 74 of file cvgabor.h.

float CvGabor::K [protected]

Definition at line 69 of file cvgabor.h.

float CvGabor::Kmax [protected]

Definition at line 68 of file cvgabor.h.

float CvGabor::Phi [protected]

Definition at line 70 of file cvgabor.h.

CvMat* CvGabor::Real [protected]

Definition at line 75 of file cvgabor.h.

float CvGabor::Sigma [protected]

Definition at line 66 of file cvgabor.h.

long CvGabor::Width [protected]

Definition at line 73 of file cvgabor.h.


The documentation for this class was generated from the following files:


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