Getting Started with EasyAR
Header:#include "easyar/target.hpp"


AugmentedTarget is the tracked target by trackers.

An AugmentedTarget contains a raw Target that is tracked and current status and pose of the Target.

Public Types

enumStatus{kTargetStatusUnknown, kTargetStatusUndefined, kTargetStatusDetected, kTargetStatusTracked}

Public Functions

virtual Statusstatus() const
virtual Targettarget() const
virtual Matrix34Fpose() const

enum AugmentedTarget::Status

kTargetStatusUnknown0The status is unknown.
kTargetStatusUndefined1The status is undefined.
kTargetStatusDetected2The target is detected.
kTargetStatusTracked3The target is tracked.


Creates a AugmentedTarget object.

virtual ~AugmentedTarget()

Destroys the AugmentedTarget object.

virtual Status status() const

Returns current status of the tracked target. Usually you can check if the result of status() == kTargetStatusTracked is true to determine current status of the target.

virtual Target target() const

Gets the raw target. It will return the same Target you loaded into the ImageTracker

virtual Matrix34F pose() const

Returns current pose of the tracked target. You can pass this pose to getPoseGL to get a OpenGL matrix.

The general usage is like

  Matrix44F mat = getPoseGL(frame.targets()[0].pose());