PFrameToFrameTracker Class Reference

Detailed Description

The PFrameToFrameTracker class represents a process that tracks, frame by frame, generic objects; not thread-safe.

Warning: this class is not thread-safe; you need several instances to process several video at the same time.

PFrameToFrameTracker instances are constructed through factory constructors for the specific object type.

Definition at line 39 of file PFrameToFrameTracker.h.

#include <PFrameToFrameTracker.h>

Constructor & Destructor Documentation

◆ PFrameToFrameTracker() [1/2]

PFrameToFrameTracker::PFrameToFrameTracker ( )

Construct an empty frame to frame tracker (do nothing); use PFrameToFrameTracker::Create() factory to instantiate a frame to frame tracker.

◆ PFrameToFrameTracker() [2/2]

PFrameToFrameTracker::PFrameToFrameTracker ( const PFrameToFrameTracker other)

Constructs a shared copy of other.

◆ ~PFrameToFrameTracker()

virtual PFrameToFrameTracker::~PFrameToFrameTracker ( )
virtual

Destroys this object.

Member Function Documentation

◆ Apply()

PResult PFrameToFrameTracker::Apply ( const PFrame frame,
PDetectionList detectionList 
)

Applies this tracker on the specified frame and detection list.

◆ Create() [1/2]

static PResult PFrameToFrameTracker::Create ( const PString productName,
const PProperties parameters,
PFrameToFrameTracker frameToFrameTracker 
)
static

Factory: creates a frame to frame from the specified plugin and parameters (factory).

Returns PResult::C_OK if success, another result otherwise.

◆ Create() [2/2]

static PResult PFrameToFrameTracker::Create ( const PPlugin plugin,
const PProperties parameters,
PFrameToFrameTracker frameToFrameTracker 
)
static

Factory: creates a frame to frame from the specified plugin and parameters (factory).

Returns PResult::C_OK if success, another result otherwise.

◆ operator=()

PFrameToFrameTracker& PFrameToFrameTracker::operator= ( const PFrameToFrameTracker other)

Performs a shared copy of other to this object.