Packagecom.transmote.flar.utils.threshold
Interfacepublic interface IThresholdAdapter
ImplementorsDrunkWalkThresholdAdapter, HistogramThresholdAdapter, IntegralImageThresholdAdapter



Public Properties
 PropertyDefined by
  runsEveryFrame : Boolean
[read-only] returns true if this threshold adapter should run every frame; returns false if this threshold adapter should run only when no markers are found.
IThresholdAdapter
Public Methods
 MethodDefined by
  
calculateThreshold(source:BitmapData, currentThreshold:Number):Number
calculate a new threshold.
IThresholdAdapter
  
dispose():void
free this instance for garbage collection.
IThresholdAdapter
  
initFromXML(paramsObj:Object):void
init from a name-value paired object that contains parameters parsed from XML.
IThresholdAdapter
  
resetCalculations(currentThreshold:Number):void
reset calculations.
IThresholdAdapter
Property detail
runsEveryFrameproperty
runsEveryFrame:Boolean  [read-only]

returns true if this threshold adapter should run every frame; returns false if this threshold adapter should run only when no markers are found.

Implementation
    public function get runsEveryFrame():Boolean
Method detail
calculateThreshold()method
public function calculateThreshold(source:BitmapData, currentThreshold:Number):Number

calculate a new threshold. this algorithm may just calculate a threshold and pass that back to FLARManager, which then passes it on to FLARToolkit for internal thresholding. however, this algorithm may also modify the source BitmapData directly. in this case, the algorithm must return -1, to tell FLARToolkit to skip its internal thresholding algorithm, and use the source BitmapData as modified here.

Parameters
source:BitmapData — source BitmapData used for computer vision analysis.
 
currentThreshold:Number — current threshold value.

Returns
Number — new threshold value.
dispose()method 
public function dispose():void

free this instance for garbage collection.

initFromXML()method 
public function initFromXML(paramsObj:Object):void

init from a name-value paired object that contains parameters parsed from XML.

Parameters
paramsObj:Object
resetCalculations()method 
public function resetCalculations(currentThreshold:Number):void

reset calculations.

Parameters
currentThreshold:Number — current threshold value.