AURobotServers
4
|
#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 |
Hold image statistics for evaluation of image properties.
UImgStat::UImgStat | ( | ) |
UImgStat::~UImgStat | ( | ) |
Destructor
|
inline |
Make statistics invalid.
References evaluateStatistics(), and valid.
bool UImgStat::evaluateStatistics | ( | UImage * | rawImg, |
int | iStep = 4 |
||
) |
Evaluate statistics
References avgHighY, avgLowY, avgY, cntHigh, cntLow, UImage::getHeight(), UImage::getWidth(), UImage::getYline(), maxY, step, valid, UImage::valid, and yHigh.
Referenced by clear().
|
inline |
Get average intensity for pixels above yHigh treshold
References avgHighY.
|
inline |
Get average intensity for pixels below yHigh treshold
References avgLowY.
|
inline |
Get average intensity
References avgY.
|
inline |
Get count of analyzed high intencity pixels
References cntHigh.
|
inline |
Get count of analyzed low intencity pixels
References cntLow.
|
inline |
Get relation between low and high intensity count values
|
inline |
Get maximum intensity
References maxY.
|
inline |
Is statistical data valid.
References valid.
|
private |
Average of yntensity pixels above top limit
Referenced by evaluateStatistics(), getAvgHighY(), and UImgStat().
|
private |
Average of intensity for pixels below limit,
Referenced by evaluateStatistics(), getAvgLowY(), and UImgStat().
|
private |
Average intensity (Y) for about 1/10 of image pixels
Referenced by evaluateStatistics(), getAvgY(), and UImgStat().
|
private |
Count of pxels above limit
Referenced by evaluateStatistics(), getCntHighY(), and UImgStat().
|
private |
Count of used pixels below limit
Referenced by evaluateStatistics(), getCntLowY(), and UImgStat().
|
private |
Highest intensity value
Referenced by evaluateStatistics(), and getMaxY().
|
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().
|
private |
Is statistics data valid
Referenced by clear(), evaluateStatistics(), isValid(), and UImgStat().
|
private |
Limit between high and low intensity pixels.
Referenced by evaluateStatistics(), and UImgStat().