Packagecom.transmote.flar.utils.threshold
Classpublic class HistogramThresholdAdapter
InheritanceHistogramThresholdAdapter Inheritance Object
Implements IThresholdAdapter

HistogramThresholdAdapter calculates a threshold based on a histogram of the source image. For speed, the average of the values per histogram channel is used, rather than calculating valleys.



Public Properties
 PropertyDefined By
  runsEveryFrame : Boolean
[read-only] Returns false; HistogramThresholdAdapter runs only when confidence is low (poor marker detection).
HistogramThresholdAdapter
Public Methods
 MethodDefined By
  
HistogramThresholdAdapter
  
calculateThreshold(source:BitmapData, currentThreshold:Number):Number
Calculate a new threshold.
HistogramThresholdAdapter
  
dispose():void
Free this instance for garbage collection.
HistogramThresholdAdapter
  
initFromXML(paramsObj:Object):void
Init from a name-value paired object that contains parameters parsed from XML.
HistogramThresholdAdapter
  
resetCalculations(currentThreshold:Number):void
Reset calculations.
HistogramThresholdAdapter
Property Detail
runsEveryFrameproperty
runsEveryFrame:Boolean  [read-only]

Returns false; HistogramThresholdAdapter runs only when confidence is low (poor marker detection).


Implementation
    public function get runsEveryFrame():Boolean
Constructor Detail
HistogramThresholdAdapter()Constructor
public function HistogramThresholdAdapter()



Method Detail
calculateThreshold()method
public function calculateThreshold(source:BitmapData, currentThreshold:Number):Number

Calculate a new threshold.

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.