Package | com.transmote.flar.utils.threshold |
Interface | public interface IThresholdAdapter |
Implementors | DrunkWalkThresholdAdapter, HistogramThresholdAdapter, IntegralImageThresholdAdapter |
Property | Defined 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 |
Method | Defined 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 |
runsEveryFrame | property |
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
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.
Parameterssource:BitmapData — source BitmapData used for computer vision analysis.
|
|
currentThreshold:Number — current threshold value.
|
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.
ParametersparamsObj:Object |
resetCalculations | () | method |
public function resetCalculations(currentThreshold:Number):void
reset calculations.
ParameterscurrentThreshold:Number — current threshold value.
|