Public Member Functions | Protected Member Functions | Protected Attributes
cpl_visual_features::GaborFilterBank Class Reference

#include <gabor_filter_bank.h>

List of all members.

Public Member Functions

std::vector< double > extractFeature (cv::Mat &frame)
double featureDist (std::vector< double > f1, std::vector< double > f2)
cv::Mat filterImg (cv::Mat &img, int m, int n, bool use_real=true)
 GaborFilterBank (int M=4, int N=6, double U_l=0.05, double U_h=0.4, int gabor_size=7)

Protected Member Functions

void calcSampleVar ()
void generateGaborFilters ()

Protected Attributes

std::vector< std::vector
< std::vector< double > > > 
alpha_base_mu_
std::vector< std::vector
< std::vector< double > > > 
alpha_base_sigma_
std::vector< std::vector
< double > > 
alpha_mu_
std::vector< std::vector
< double > > 
alpha_sigma_
bool calc_var_
std::vector< std::vector
< cv::Mat > > 
gabor_c_
int gabor_size_
int M_
int N_
double U_h_
double U_l_

Detailed Description

Definition at line 46 of file gabor_filter_bank.h.


Constructor & Destructor Documentation

cpl_visual_features::GaborFilterBank::GaborFilterBank ( int  M = 4,
int  N = 6,
double  U_l = 0.05,
double  U_h = 0.4,
int  gabor_size = 7 
)

Cunstroctor for FilterBank class. Has default values based on the manjunathi-pami1996 paper.

Parameters:
Mnumber of scale
Nnumber of orientations
U_llower frequency center of interest
U_hupper frequency center of interest
gabor_sizeconvolution filter size

Definition at line 47 of file gabor_filter_bank.cpp.


Member Function Documentation

Method to calculate the sample variances for the extracted features.

Definition at line 242 of file gabor_filter_bank.cpp.

Extract a texture feature from the given image using the filter bank.

Parameters:
frameThe image to extract the texture feature
Returns:
A feature vector of length 2*M_*N_

Definition at line 176 of file gabor_filter_bank.cpp.

double cpl_visual_features::GaborFilterBank::featureDist ( std::vector< double >  f1,
std::vector< double >  f2 
)

Determine the distance between two feature vectors, taking into account the distribution of all feature vectors

Parameters:
f1The first feature vector
f2The second feature vector
Returns:
The distance between the two vectors in feature space

Definition at line 218 of file gabor_filter_bank.cpp.

Mat cpl_visual_features::GaborFilterBank::filterImg ( cv::Mat &  img,
int  m,
int  n,
bool  use_real = true 
)

Convolve the given image with the specified real or imaginary gabor filter at scale m and orientation n

Parameters:
imgThe image with which to convolve the filter
mThe scale of the filter to use (0 <= m < M_)
nThe orientation of the filter to use (0 <= n < N_)
use_realtrue for real component filter, false for the imaginary
Returns:
The convolved image showing the filter responses

Definition at line 151 of file gabor_filter_bank.cpp.

Generate the gabor filters to be used in processing, parameterized by class members M_, N_, U_l_, U_h_, and gabor_size_

Definition at line 74 of file gabor_filter_bank.cpp.


Member Data Documentation

Definition at line 121 of file gabor_filter_bank.h.

Definition at line 122 of file gabor_filter_bank.h.

Definition at line 124 of file gabor_filter_bank.h.

Definition at line 125 of file gabor_filter_bank.h.

Definition at line 127 of file gabor_filter_bank.h.

Definition at line 117 of file gabor_filter_bank.h.

Definition at line 116 of file gabor_filter_bank.h.

Definition at line 112 of file gabor_filter_bank.h.

Definition at line 113 of file gabor_filter_bank.h.

Definition at line 115 of file gabor_filter_bank.h.

Definition at line 114 of file gabor_filter_bank.h.


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


cpl_visual_features
Author(s): Tucker Hermans
autogenerated on Wed Nov 27 2013 11:52:36