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

IntegralImageThresholdAdapter applies thresholding directly to source BitmapData, using an integral image algorithm.



Public Properties
 PropertyDefined by
  runsEveryFrame : Boolean
[read-only] IntegralImageThresholdAdapter must run every frame.
IntegralImageThresholdAdapter
Public Methods
 MethodDefined by
  
IntegralImageThresholdAdapter
  
calculateThreshold(source:BitmapData, currentThreshold:Number):Number
IntegralImageThresholdAdapter directly modifies the source Bitmap data, and passes -1 for the threshold, to tell FLARToolkit not to apply its own thresholding.
IntegralImageThresholdAdapter
  
dispose():void
free this instance for garbage collection.
IntegralImageThresholdAdapter
  
initFromXML(paramsObj:Object):void
init from a name-value paired object that contains parameters parsed from XML.
IntegralImageThresholdAdapter
  
resetCalculations(currentThreshold:Number):void
reset calculations.
IntegralImageThresholdAdapter
Property detail
runsEveryFrameproperty
runsEveryFrame:Boolean  [read-only]

IntegralImageThresholdAdapter must run every frame.

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

IntegralImageThresholdAdapter directly modifies the source Bitmap data, and passes -1 for the threshold, to tell FLARToolkit not to apply its own thresholding.

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.