Packagecom.transmote.flar.utils.threshold
Classpublic class IntegralImageThresholdAdapter
InheritanceIntegralImageThresholdAdapter Inheritance Object
Implements IThresholdAdapter

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 prohibit the tracker from applying its own thresholding.
IntegralImageThresholdAdapter
  
dispose():void
Free this instance for garbage collection.
IntegralImageThresholdAdapter
  
initFromXML(paramsObj:Object):void
Iinit 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 prohibit the tracker from applying 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

Iinit 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.