Package | com.transmote.flar.source |
Class | public class FLARLoaderSource |
Inheritance | FLARLoaderSource flash.display.Sprite |
Implements | IFLARSource |
Loader
as a source image for tracker target detection.
FLARLoaderSource samples the contents of a Loader
against a white background,
to provide maximum contrast for marker detection.
This class can be used for testing marker detection without a camera,
for example with a swf or jpeg with valid patterns within.
Property | Defined By | ||
---|---|---|---|
inited : Boolean [read-only]
Returns true if initialization is complete. | FLARLoaderSource | ||
mirrored : Boolean
FLARLoaderSource cannot be mirrored;
method is here only for compliance with IFLARSource. | FLARLoaderSource | ||
source : BitmapData [read-only]
Retrieve the BitmapData source used for analysis. | FLARLoaderSource | ||
sourceDirty : Boolean [read-only]
FLARLoaderSource always returns true, to ensure tracking happens every frame. | FLARLoaderSource | ||
sourceSize : Rectangle [read-only]
Size of BitmapData source used for analysis. | FLARLoaderSource | ||
trackerToDisplayRatio : Number [read-only]
Ratio of area of tracker's reported results to display size. | FLARLoaderSource |
Method | Defined By | ||
---|---|---|---|
FLARLoaderSource(contentPath:String, displayWidth:Number, displayHeight:Number, trackerToSourceRatio:Number = 0.5)
Constructor. | FLARLoaderSource | ||
dispose():void
Halts all processes and frees this instance for garbage collection. | FLARLoaderSource | ||
update():void
Update the BitmapData source used for analysis. | FLARLoaderSource |
inited | property |
inited:Boolean
[read-only]
Returns true
if initialization is complete.
FLARLoaderSource is inited automatically in constructor.
public function get inited():Boolean
mirrored | property |
mirrored:Boolean
FLARLoaderSource cannot be mirrored; method is here only for compliance with IFLARSource.
public function get mirrored():Boolean
public function set mirrored(value:Boolean):void
source | property |
source:BitmapData
[read-only] Retrieve the BitmapData source used for analysis. NOTE: returns the actual BitmapData object, not a clone.
public function get source():BitmapData
sourceDirty | property |
sourceDirty:Boolean
[read-only]
FLARLoaderSource
always returns true
, to ensure tracking happens every frame.
public function get sourceDirty():Boolean
sourceSize | property |
sourceSize:Rectangle
[read-only] Size of BitmapData source used for analysis.
public function get sourceSize():Rectangle
trackerToDisplayRatio | property |
trackerToDisplayRatio:Number
[read-only] Ratio of area of tracker's reported results to display size. Use to scale (multiply) results of tracker analysis to correctly fit display area.
public function get trackerToDisplayRatio():Number
FLARLoaderSource | () | Constructor |
public function FLARLoaderSource(contentPath:String, displayWidth:Number, displayHeight:Number, trackerToSourceRatio:Number = 0.5)
Constructor.
ParameterscontentPath:String — Filename to load.
| |
displayWidth:Number — Width at which to display video.
| |
displayHeight:Number — Height at which to display video.
| |
trackerToSourceRatio:Number (default = 0.5 ) — Amount to downsample camera input.
The captured video is scaled down by this value
before being sent to tracker for analysis.
Trackers run faster with more downsampling,
but also have more difficulty recognizing marker patterns and targets.
A value of 1.0 results in no downsampling;
A value of 0.5 (the default) downsamples the camera input by half.
|
dispose | () | method |
public function dispose():void
Halts all processes and frees this instance for garbage collection.
update | () | method |
public function update():void
Update the BitmapData
source used for analysis.