Scripts/src/teventcamera.cpp
void ThermalEventCamera::update()
{
	if(this->clearSigns){
		std::fill(std::begin(this->out),std::end(this->out),0);
	}
	// if there are events in the queue
	if(!this->events.empty())
	{
		EventData ev;
		// get current size of queue and iterate over it
		// getting the entries and updating the signs matrix
		for(unsigned long i=0;i< this->events.size();++i){
			// if successful, update sign
			if(this->events.pop(ev)){
				this->out[ev.idx] = ev.sign;
				this->lts = ev.time();
			}
		}
	}
}
// update the output matrix
// clear the current matrix, query the events map for any changes and process any
update the output matrix
clear the current matrix, query the events map for any changes and process any
update the output matrix clear the current matrix query the events map for any changes and process any
void ThermalEventCamera::update()
{
	if(this->clearSigns){
		std::fill(std::begin(this->out),std::end(this->out),0);
	}
	if(!this->events.empty())
	{
		EventData ev;
		for(unsigned long i=0;i< this->events.size();++i){
			if(this->events.pop(ev)){
				this->out[ev.idx] = ev.sign;
				this->lts = ev.time();
			}
		}
	}
}
void ThermalEventCamera :: update ( ) { if ( this -> clearSigns ) { std :: fill ( std :: begin ( this -> out ) , std :: end ( this -> out ) , 0 ) ; } if ( ! this -> events . empty ( ) ) { EventData ev ; for ( unsigned long i = 0 ; i < this -> events . size ( ) ; ++ i ) { if ( this -> events . pop ( ev ) ) { this -> out [ ev . idx ] = ev . sign ; this -> lts = ev . time ( ) ; } } } }
update the output matrix
clear the current matrix, query the events map for any changes and process any
update the output matrix clear the current matrix query the events map for any changes and process any
// if there are events in the queue // get current size of queue and iterate over it // getting the entries and updating the signs matrix // if successful, update sign