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

enumStatus{kTargetStatusUnknown, kTargetStatusUndefined, kTargetStatusDetected, kTargetStatusTracked}

Public Functions

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

enum AugmentedTarget::Status

ConstantValueDescription

kTargetStatusUnknown``0The status is unknown.

kTargetStatusUndefined``1The status is undefined.

kTargetStatusDetected``2The target is detected.

kTargetStatusTracked``3The 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());

results matching ""

    No results matching ""