Public Methods

mw::nar::MarkerDatabase_cl Class

Database class that registers the marker templates to detect.[Details]

#include <narMarkerDatabase.h>

List of All Members

Public Methods

 MarkerDatabase_cl (f32 th=0.5f)
f32 GetThreshold() const
 Gets the threshold for determining whether this is the current marker.
bool IsRegistered (const MarkerTemplate_st &cr_Template)
 Checks if a marker template is registered.
boolRegister (MarkerTemplate_st &r_Template)
 Registers a marker template.
voidSetThreshold (f32 th)
boolUnregister (MarkerTemplate_st &r_Template)
 Unregisters a marker template.
voidUnregisterAll ()
 Unregisters all marker templates.

Description

Database class that registers the marker templates to detect.


Constructors and Destructors

mw::nar::MarkerDatabase_cl::MarkerDatabase_cl ( f32 th = 0.5f  )  [inline]
Argument:
th Threshold value for determining a marker.(-1.0 - 1.0)

When an image is similar to a marker, the relatedness approaches 1.0. You can thus check strictly for relatedness by setting the threshold closer to 1.0.


Functions

bool mw::nar::MarkerDatabase_cl::Register ( MarkerTemplate_st r_Template  ) 

Registers a marker template.

Return values:
true Registration succeeded.
false Registration failed. Registration will fail when the number of registered items reaches the maximum value for an unsigned long.
void mw::nar::MarkerDatabase_cl::SetThreshold ( f32  th  )  [inline]
Argument:
th Threshold value for determining whether the image is a marker. Use larger values (min: -1.0, max: 1.0) for stricter checks. 0.0 indicates no association; -1.0 indicates inverse.
bool mw::nar::MarkerDatabase_cl::Unregister ( MarkerTemplate_st r_Template  ) 

Unregisters a marker template.

Return values:
true Unregistered.
false The specified template was not found in the database.

This class description was generated from the following file.


CONFIDENTIAL