Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Feature Class Reference

#include <viola_locator.h>

Inheritance diagram for Feature:

Heuristic List of all members.

Public Methods

 Feature (char type, unsigned int height, unsigned int width, unsigned int x, unsigned int y, long mfaces, long mnonfaces)
virtual int eval (Sample &sample)
long computeWavelet (SampleImage &sam)
void setP (int p)
void setTheta (long theta)
void save (ofstream &file)
void print ()

Public Attributes

long mface
long mnonface
char type
unsigned int height
unsigned int width
unsigned int x
unsigned int y
int p
long theta

Detailed Description

This is the strucure for storing the specifications for each feature defined on an image.


Constructor & Destructor Documentation

Feature::Feature char    type,
unsigned int    height,
unsigned int    width,
unsigned int    x,
unsigned int    y,
long    mfaces,
long    mnonfaces
 


Member Function Documentation

long Feature::computeWavelet SampleImage   sam
 

apply a feature to a sample

int Feature::eval Sample   sample [virtual]
 

Implements Heuristic.

void Feature::print  
 

void Feature::save ofstream &    file
 

void Feature::setP int    p
 

void Feature::setTheta long    theta
 


Member Data Documentation

unsigned int Feature::height
 

the height of the feature's box in pixles

long Feature::mface
 

long Feature::mnonface
 

int Feature::p
 

the parity indicates the direction of the inequality sign

long Feature::theta
 

this is the threshold of the function

char Feature::type
 

the type of the feature

See also:
featureTypeA,featureTypeB,featureTypeC,featureTypeD,featureTypeE

unsigned int Feature::width
 

the width of the feature's box in pixles

unsigned int Feature::x
 

the x location of the feature in pixles

unsigned int Feature::y
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 10:42:35 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002