OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::view::TrackHistoryPoint

Single point in a track's motion trail for rendering.

Public attributes

x

float x = 0.0F

Horizontal position of the point, in Detection::x units.

The filtered position at the frame it was appended, not the raw detection -- so a trail is smoother than the measurements that produced it. The one exception is a track's first point, which is the detection that created the track, before any filtering.

y

float y = 0.0F

Vertical position of the point, in Detection::y units. Same as x.

alpha

float alpha = 1.0F

Render opacity for this point, 1.0 when it was appended.

Every existing point is multiplied by 0.95 each time a new one arrives, so this is 0.95 raised to the number of points added since -- an age wearing a fade's clothing, down to about 0.05 by the time a full 60-point trail has turned over. It is a drawing weight and says nothing about confidence in the position. Ignore it and draw a flat polyline if no fade is wanted.