PFeverCamTemperatureImagesHandler Class Reference

Detailed Description

The PFeverCamTemperatureImagesHandler class provides FeverCam temperature images capture, processing and handling.

This class retrieves the temperature video stream from a FeverCam and buffers last N captured frames while detecting content changes These frames can then be accessed for synchronization between color and thermal cameras Detected content changes can also be retrieved to be used as foreground mask when retrieving foreground object temperature

Definition at line 34 of file PFeverCamTemperatureImagesHandler.h.

#include <PFeverCamTemperatureImagesHandler.h>

Constructor & Destructor Documentation

◆ PFeverCamTemperatureImagesHandler() [1/2]

PFeverCamTemperatureImagesHandler::PFeverCamTemperatureImagesHandler ( int32  bufferSize)

Constructs a temperature Images Handler with maximum buffer size (minimum value 1)

◆ PFeverCamTemperatureImagesHandler() [2/2]

PFeverCamTemperatureImagesHandler::PFeverCamTemperatureImagesHandler ( const PFeverCamTemperatureImagesHandler other)

Constructs a shared copy of other.

◆ ~PFeverCamTemperatureImagesHandler()

virtual PFeverCamTemperatureImagesHandler::~PFeverCamTemperatureImagesHandler ( )
virtual

Destroys this object.

Member Function Documentation

◆ Connect()

PResult PFeverCamTemperatureImagesHandler::Connect ( const PString i_streamURI)

Connects to temperature stream and starts background capture and processing Disconnects previous stream and removes captured data if calling for another URI while already connected Fails if input stream couldn't be opened.

◆ GetDataClosestTo()

PResult PFeverCamTemperatureImagesHandler::GetDataClosestTo ( const PDateTime i_t,
PFrame o_temperatureFrame,
PImage o_temperatureChangeImg,
int32 &  o_changedPixelsCount,
int32  i_maxDelayMs = 1000 
)

Gets data (frame, detection change) closest to input timestamp Input:

  • i_t: timestamp for which temperature data is requested
  • i_maxDelayMs: maximum delay in milli-seconds acceptable for a frame (default 1000) Outputs:
  • Temperature frame as captured at that time
  • Temperature change data as captured at that time
  • Number of pixels with changed temperature at that time

Fails if no frame closer than maxDelayMs could be found

◆ GetFrameClosestTo()

PResult PFeverCamTemperatureImagesHandler::GetFrameClosestTo ( const PDateTime i_t,
PFrame o_temperatureFrame,
int32  i_maxDelayMs = 1000 
)

Retrieves the temperature frame closest to the input timestamp Input:

  • i_t: timestamp for which temperature data is requested
  • i_maxDelayMs: maximum delay in milli-seconds acceptable for a frame (default 1000) Output:
  • Temperature frame as captured at that time

Fails if no frame closer than maxDelayMs could be found

◆ GetTemperatureVideoStream()

PResult PFeverCamTemperatureImagesHandler::GetTemperatureVideoStream ( PInputVideoStream o_temperatureStream) const

Outputs the currently used temperature stream that can be used to modify FeverCam settings (see PInputVideoStreamFeverCam plugin parameters for more details)

Fails if no temperature stream is currently opened

◆ IsRunning()

bool PFeverCamTemperatureImagesHandler::IsRunning ( ) const

Returns true if temperature stream is opened and background image acquisition is running.

◆ Stop()

void PFeverCamTemperatureImagesHandler::Stop ( )

Halts background image acquisition and processing.

Friends And Related Function Documentation

◆ PFeverCamTemperatureImagesHandlerImpl

friend class PFeverCamTemperatureImagesHandlerImpl
friend

Definition at line 108 of file PFeverCamTemperatureImagesHandler.h.