#include <iso_tracker_bg_calibration.h>
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
| ||||
| void | restore () throw (TrackerException) | |||
read calibration data from file
| ||||
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 | ||||
| BGCalibration::BGCalibration | ( | const math::Vector2< unsigned int > & | pFrameSize, | |
| unsigned int | pChannelCount, | |||
| unsigned int | pCalibFrameCount, | |||
| bool | pContCalibration | |||
| ) |
create background calibration
| 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
| 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 |
| BGCalibration::~BGCalibration | ( | ) |
destructor
| BGCalibration::BGCalibration | ( | ) | [protected] |
default constructor
| 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
| IplImage * BGCalibration::stdDev | ( | ) | const |
return std deviation of background statistics
| void BGCalibration::update | ( | IplImage * | pFrame | ) | throw (TrackerException) |
update background calibration
| pFrame | frame |
| 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] |
| void BGCalibration::restore | ( | ) | throw (TrackerException) [protected] |
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
1.5.1