AugmentedTarget Class

Header: #include "easyar/target.hpp"

Inherits: RefBase

Description

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

enum Status{kTargetStatusUnknown, kTargetStatusUndefined, kTargetStatusDetected, kTargetStatusTracked}

Public Functions

AugmentedTarget()
virtual ~AugmentedTarget
virtual Status status() const
virtual Target target() const
virtual Matrix34F pose() const

enum AugmentedTarget::Status

Constant

Value

Description

kTargetStatusUnknown

0

The status is unknown.

kTargetStatusUndefined

1

The status is undefined.

kTargetStatusDetected

2

The target is detected.

kTargetStatusTracked

3

The target is tracked.

AugmentedTarget()

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());