AURobotServers  4
Public Member Functions | Private Attributes | List of all members
UImgStat Class Reference

#include <uimgstat.h>

Public Member Functions

void clear ()
 
bool evaluateStatistics (UImage *rawImg, int iStep=4)
 
int getAvgHighY ()
 
int getAvgLowY ()
 
int getAvgY ()
 
int getCntHighY ()
 
int getCntLowY ()
 
int getLowHighRel ()
 
int getMaxY ()
 
bool isValid ()
 
 UImgStat ()
 
 ~UImgStat ()
 

Private Attributes

int avgHighY
 
int avgLowY
 
int avgY
 
int cntHigh
 
int cntLow
 
int maxY
 
int step
 
bool valid
 
int yHigh
 

Detailed Description

Hold image statistics for evaluation of image properties.

Author
Christian Andersen

Constructor & Destructor Documentation

UImgStat::UImgStat ( )

Constructor

References avgHighY, avgLowY, avgY, cntHigh, cntLow, step, valid, and yHigh.

UImgStat::~UImgStat ( )

Destructor

Member Function Documentation

void UImgStat::clear ( void  )
inline

Make statistics invalid.

References evaluateStatistics(), and valid.

bool UImgStat::evaluateStatistics ( UImage rawImg,
int  iStep = 4 
)
int UImgStat::getAvgHighY ( )
inline

Get average intensity for pixels above yHigh treshold

References avgHighY.

int UImgStat::getAvgLowY ( )
inline

Get average intensity for pixels below yHigh treshold

References avgLowY.

int UImgStat::getAvgY ( )
inline

Get average intensity

References avgY.

int UImgStat::getCntHighY ( )
inline

Get count of analyzed high intencity pixels

References cntHigh.

int UImgStat::getCntLowY ( )
inline

Get count of analyzed low intencity pixels

References cntLow.

int UImgStat::getLowHighRel ( )
inline

Get relation between low and high intensity count values

int UImgStat::getMaxY ( )
inline

Get maximum intensity

References maxY.

bool UImgStat::isValid ( )
inline

Is statistical data valid.

References valid.

Member Data Documentation

int UImgStat::avgHighY
private

Average of yntensity pixels above top limit

Referenced by evaluateStatistics(), getAvgHighY(), and UImgStat().

int UImgStat::avgLowY
private

Average of intensity for pixels below limit,

Referenced by evaluateStatistics(), getAvgLowY(), and UImgStat().

int UImgStat::avgY
private

Average intensity (Y) for about 1/10 of image pixels

Referenced by evaluateStatistics(), getAvgY(), and UImgStat().

int UImgStat::cntHigh
private

Count of pxels above limit

Referenced by evaluateStatistics(), getCntHighY(), and UImgStat().

int UImgStat::cntLow
private

Count of used pixels below limit

Referenced by evaluateStatistics(), getCntLowY(), and UImgStat().

int UImgStat::maxY
private

Highest intensity value

Referenced by evaluateStatistics(), and getMaxY().

int UImgStat::step
private

When calculation statistics, not all pixels are used. this 'step' value determins distance between pixels both horizontal and vertical.

Referenced by evaluateStatistics(), and UImgStat().

bool UImgStat::valid
private

Is statistics data valid

Referenced by clear(), evaluateStatistics(), isValid(), and UImgStat().

int UImgStat::yHigh
private

Limit between high and low intensity pixels.

Referenced by evaluateStatistics(), and UImgStat().


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