| Package | com.transmote.flar.utils.threshold |
| Class | public class HistogramThresholdAdapter |
| Inheritance | HistogramThresholdAdapter Object |
| Implements | IThresholdAdapter |
| Property | Defined By | ||
|---|---|---|---|
| runsEveryFrame : Boolean [read-only]
Returns false;
HistogramThresholdAdapter runs only when confidence is low (poor marker detection). | HistogramThresholdAdapter | ||
| Method | Defined 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 | ||
| runsEveryFrame | property |
runsEveryFrame:Boolean [read-only]
Returns false;
HistogramThresholdAdapter runs only when confidence is low (poor marker detection).
public function get runsEveryFrame():Boolean| HistogramThresholdAdapter | () | Constructor |
public function HistogramThresholdAdapter()| calculateThreshold | () | method |
public function calculateThreshold(source:BitmapData, currentThreshold:Number):NumberCalculate a new threshold.
Parameters
source:BitmapData — Source BitmapData used for computer vision analysis.
| |
currentThreshold:Number — Current threshold value.
|
Number — New threshold value.
|
| dispose | () | method |
public function dispose():voidFree this instance for garbage collection.
| initFromXML | () | method |
public function initFromXML(paramsObj:Object):voidInit from a name-value paired object that contains parameters parsed from XML.
Parameters
paramsObj:Object |
| resetCalculations | () | method |
public function resetCalculations(currentThreshold:Number):voidReset calculations.
Parameters
currentThreshold:Number — current threshold value.
|