wrapper for all information needed by FLARToolkit to track an individual marker.
public var _filename:String
filename:String
[read-only]
location of marker pattern file.
Implementation
public function get filename():String
public var _minConfidence:Number
minConfidence:Number
[read-write]
'confidence' is a value assigned by FLARToolkit to each detected marker,
that describes the algorithm's perceived accuracy of the pattern match.
this value sets the minimum confidence required to signal a recognized marker.
Implementation
public function get minConfidence():Number
public function set minConfidence(value:Number):void
public var _patternToBorderRatio:Number
patternToBorderRatio:Number
[read-only]
out of the entire width/height of a marker, the amount that
the pattern occupies relative to the amount the border occupies.
value is expressed as a percentage.
for example, a value of 50 indicates that the width of the pattern area
is equal to the total width (on either side of the pattern) of the border.
Implementation
public function get patternToBorderRatio():Number
public var _resolution:int
resolution:Number
[read-only]
resolution (width/height) of marker pattern file.
Implementation
public function get resolution():Number
public var _unscaledMarkerWidth:Number
unscaledMarkerWidth:Number
[read-only]
the width of a marker (in pixels) on-screen at which
the scale of its transformation matrix is 1.0.
Implementation
public function get unscaledMarkerWidth():Number
public function FLARPattern(filename:String, resolution:int, patternToBorderRatio:Number, unscaledMarkerWidth:Number, minConfidence:Number)
constructor.
Parameters
| filename:String — location of marker pattern file.
|
|
| resolution:int — resolution (width/height) of marker pattern file.
|
|
| patternToBorderRatio:Number — out of the entire width/height of a marker, the amount that
the pattern occupies relative to the amount the border occupies.
value is expressed as a percentage.
for example, a value of 50 indicates that the width of the pattern area
is equal to the total width (on either side of the pattern) of the border.
defaults to 50.
|
|
| unscaledMarkerWidth:Number — the width of a marker (in pixels) on-screen at which
the scale of its transformation matrix is 1.0.
defaults to 80.
|
|
| minConfidence:Number — 'confidence' is a value assigned by FLARToolkit to each detected marker,
that describes the algorithm's perceived accuracy of the pattern match.
this value sets the minimum confidence required to signal a recognized marker.
defaults to 0.5.
|
public static const DEFAULT_MIN_CONFIDENCE:Number = 0.5
public static const DEFAULT_PATTERN_TO_BORDER_RATIO:Number = 50
public static const DEFAULT_UNSCALED_MARKER_WIDTH:Number = 80
By Eric Socolofsky, http://transmote.com. Released under the GNU GPL (http://www.gnu.org/copyleft/gpl.html).