Scripts/src/teventcamera.cpp
void ThermalEventCamera::setCompare(CompareFunc f)
{
	// update comparison function
	this->compare = f;
	// an uninitialised CompareFunc when compared to 0 returns true
	// if the function is initialised set flag
	if(f!=0){
		this->cmpSet = true;
	}
	else{	// if the user has passed a blank comparison function
		// clear flag
		this->cmpSet = false;
	}
}
// set pixel comparison function for comparing a pixel from current
// and past frames
set pixel comparison function for comparing a pixel from current
and past frames
set pixel comparison function for comparing a pixel from current and past frames
void ThermalEventCamera::setCompare(CompareFunc f)
{
	this->compare = f;
	if(f!=0){
		this->cmpSet = true;
	}
	else{	
		this->cmpSet = false;
	}
}
void ThermalEventCamera :: setCompare ( CompareFunc f ) { this -> compare = f ; if ( f != 0 ) { this -> cmpSet = true ; } else { this -> cmpSet = false ; } }
set pixel comparison function for comparing a pixel from current
and past frames
set pixel comparison function for comparing a pixel from current and past frames
// update comparison function // an uninitialised CompareFunc when compared to 0 returns true // if the function is initialised set flag // if the user has passed a blank comparison function // clear flag