Packagecom.transmote.flar.utils.threshold
Classpublic class HistogramThresholdAdapter
ImplementsIThresholdAdapter

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.