PTrack Class Reference

Detailed Description

The PTrack class represents a Track of object as face or person.

It returns an ID and a confidence score provided by the Tracker for each frame.

Definition at line 28 of file PTrack.h.

#include <PTrack.h>

Constructor & Destructor Documentation

◆ PTrack() [1/3]

PTrack::PTrack ( )

Constructs an empty track.

◆ PTrack() [2/3]

PTrack::PTrack ( const PGuid id,
float  confidence 

Constructs a track from an Id and a confidence.

◆ PTrack() [3/3]

PTrack::PTrack ( const PTrack other)

Constructs a shared copy of other.

See also

◆ ~PTrack()

virtual PTrack::~PTrack ( )

Destroys this Track.

Member Function Documentation

◆ Clear()

void PTrack::Clear ( )

Sets a new track id and set the confidence score to -1.0.

◆ Clone()

PTrack PTrack::Clone ( ) const

Returns a deep copy of this Track.

◆ GetConfidence()

float PTrack::GetConfidence ( ) const

Returns the confidence score of the track.

The range value is [0, 1.0]. -1.0 if returns if not initialised.

◆ GetTrackId()

PGuid PTrack::GetTrackId ( ) const

Returns the Id of the track.

◆ operator=()

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

Performs a shared copy of other to this Track.

See also

◆ operator==()

bool PTrack::operator== ( const PTrack other) const

Returns true if this object is the same instance than other, false otherwise.

◆ SetConfidence()

void PTrack::SetConfidence ( float  val)

Sets the confidence score of the track.

Value range is [0, 1.0].

◆ SetTrackId()

void PTrack::SetTrackId ( const PGuid val)

Sets the identifier of the track.