iso::tracker::BGCalibration Class Reference

#include <iso_tracker_bg_calibration.h>

List of all members.

Public Member Functions

 BGCalibration (const math::Vector2< unsigned int > &pFrameSize, unsigned int pChannelCount, unsigned int pCalibFrameCount, bool pContCalibration)
 create background calibration
 BGCalibration (const math::Vector2< unsigned int > &pFrameSize, unsigned int pChannelCount, unsigned int pCalibFrameCount, const base::String &pCalibFileName)
 create background calibration
 ~BGCalibration ()
 destructor
bool finished () const
 check if calibration has finished
float progress () const
 return calbration progress value
IplImage * mean () const
 return mean of background statistics
IplImage * stdDev () const
 return std deviation of background statistics
void update (IplImage *pFrame) throw (TrackerException)
 update background calibration
void reset ()
 restart calibration

Protected Member Functions

 BGCalibration ()
 default constructor
void init ()
 initialize background calibration
void save () throw (TrackerException)
 write calibration data to file
Exceptions:
TrackerException failed to write calibration data

void restore () throw (TrackerException)
 read calibration data from file
Exceptions:
TrackerException failed to read calibration data


Protected Attributes

math::Vector2< unsigned int > mFrameSize
 frame size
unsigned int mChannelCount
 channelcount
IplImage * mRawImage
 current raw image
IplImage * mRawSquareImage
 current raw square image
IplImage * mSquareSumImage
 square summation image
IplImage * mMeanImage
 mean image
IplImage * mStdDevImage
 std dev image
IplImage * mMeanSquareImage
 mean squared image
unsigned int mCalibFrameCount
 number of frames to calibrate background
unsigned int mCalibStep
 current frame accumulation step
bool mContCalibration
bool mCalibFileWriteFlag
 flag whether calibration will happen continously or only at the beginning
base::String mCalibFileName
 flag that indicates whether calibration data will be written to a file

Static Protected Attributes

static unsigned int sCalibFrameCount
 default number of frames to calibrate background


Constructor & Destructor Documentation

BGCalibration::BGCalibration ( const math::Vector2< unsigned int > &  pFrameSize,
unsigned int  pChannelCount,
unsigned int  pCalibFrameCount,
bool  pContCalibration 
)

create background calibration

Parameters:
pFrameSize frame size
pChannelCount channel count
pCalibFrameCount number of frames to calibrate background
pContCalibration calibration mode: true: continuous calibration, flag: initial calibration

BGCalibration::BGCalibration ( const math::Vector2< unsigned int > &  pFrameSize,
unsigned int  pChannelCount,
unsigned int  pCalibFrameCount,
const base::String &  pCalibFileName 
)

create background calibration

Parameters:
pFrameSize frame size
pChannelCount channel count
pCalibFrameCount number of frames to calibrate background
pContCalibration calibration mode: true: continuous calibration, flag: initial calibration
pCalibFileName file to write calibration data to or to read calibration data from
if pCalibFileName exists, read calibration data from file whenever calibration is performed again, write the new calibration data into file

BGCalibration::~BGCalibration (  ) 

destructor

BGCalibration::BGCalibration (  )  [protected]

default constructor


Member Function Documentation

bool BGCalibration::finished (  )  const

check if calibration has finished

float BGCalibration::progress (  )  const

return calbration progress value

IplImage * BGCalibration::mean (  )  const

return mean of background statistics

Returns:
mean of background statistics

IplImage * BGCalibration::stdDev (  )  const

return std deviation of background statistics

Returns:
std deviation of background statistics

void BGCalibration::update ( IplImage *  pFrame  )  throw (TrackerException)

update background calibration

Parameters:
pFrame frame
Exceptions:
TrackerException frame has wrong format (size or type)

void BGCalibration::reset (  ) 

restart calibration

void BGCalibration::init (  )  [protected]

initialize background calibration

void BGCalibration::save (  )  throw (TrackerException) [protected]

write calibration data to file

Exceptions:
TrackerException failed to write calibration data

void BGCalibration::restore (  )  throw (TrackerException) [protected]

read calibration data from file

Exceptions:
TrackerException failed to read calibration data


Member Data Documentation

unsigned int BGCalibration::sCalibFrameCount [static, protected]

default number of frames to calibrate background

math::Vector2<unsigned int> iso::tracker::BGCalibration::mFrameSize [protected]

frame size

unsigned int iso::tracker::BGCalibration::mChannelCount [protected]

channelcount

IplImage* iso::tracker::BGCalibration::mRawImage [protected]

current raw image

IplImage* iso::tracker::BGCalibration::mRawSquareImage [protected]

current raw square image

IplImage* iso::tracker::BGCalibration::mSquareSumImage [protected]

square summation image

IplImage* iso::tracker::BGCalibration::mMeanImage [protected]

mean image

IplImage* iso::tracker::BGCalibration::mStdDevImage [protected]

std dev image

IplImage* iso::tracker::BGCalibration::mMeanSquareImage [protected]

mean squared image

unsigned int iso::tracker::BGCalibration::mCalibFrameCount [protected]

number of frames to calibrate background

unsigned int iso::tracker::BGCalibration::mCalibStep [protected]

current frame accumulation step

bool iso::tracker::BGCalibration::mContCalibration [protected]

bool iso::tracker::BGCalibration::mCalibFileWriteFlag [protected]

flag whether calibration will happen continously or only at the beginning

base::String iso::tracker::BGCalibration::mCalibFileName [protected]

flag that indicates whether calibration data will be written to a file


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:20:29 2011 for iso_tracker by  doxygen 1.5.1