Packagejp.nyatla.nyartoolkit.as3.core.pickup
Classpublic class NyARColorPatt_Perspective
InheritanceNyARColorPatt_Perspective Inheritance Object
Implements INyARColorPatt
Subclasses NyARColorPatt_Perspective_O2



Protected Properties
 PropertyDefined By
  _patdata : Vector.<int>
NyARColorPatt_Perspective
  _perspective_gen : NyARPerspectiveParamGenerator_O1
NyARColorPatt_Perspective
  __pickFromRaster_cpara : Vector.<Number>
NyARColorPatt_Perspective
  _pickup_lt : NyARIntPoint2d
NyARColorPatt_Perspective
  _resolution : int
NyARColorPatt_Perspective
  _size : NyARIntSize
NyARColorPatt_Perspective
Public Methods
 MethodDefined By
  
NyARColorPatt_Perspective(i_width:int, i_height:int, i_point_per_pix:int, i_edge_percentage:int = -1)
例えば、64
NyARColorPatt_Perspective
  
getBuffer():Object
NyARColorPatt_Perspective
  
NyARColorPatt_Perspective
  
getHeight():int
NyARColorPatt_Perspective
  
NyARColorPatt_Perspective
  
NyARColorPatt_Perspective
  
getWidth():int
NyARColorPatt_Perspective
  
hasBuffer():Boolean
NyARColorPatt_Perspective
  
isEqualBufferType(i_type_value:int):Boolean
NyARColorPatt_Perspective
  
pickFromRaster(image:INyARRgbRaster, i_vertexs:Vector.<NyARIntPoint2d>):Boolean
NyARColorPatt_Perspective
  
setEdgeSize(i_x_edge:int, i_y_edge:int, i_resolution:int):void
矩形領域のエッジサイズを指定します。 エッジの計算方法は以下の通りです。 1.マーカ全体を(i_x_edge+width)x(i_y_edge+height)の解像度でパラメタを計算します。 2.ピクセルの取得開始位置を(i_x_edge/2,i_y_edge/2)へ移動します。 3.開始位置から、width x height個のピクセルを取得します。 ARToolKit標準マーカの場合は、width/2,height/2を指定してください。
NyARColorPatt_Perspective
  
setEdgeSizeByPercent(i_x_percent:int, i_y_percent:int, i_resolution:int):void
NyARColorPatt_Perspective
  
wrapBuffer(i_ref_buf:Object):void
NyARColorPatt_Perspective
Property Detail
__pickFromRaster_cparaproperty
protected var __pickFromRaster_cpara:Vector.<Number>

_patdataproperty 
protected var _patdata:Vector.<int>

_perspective_genproperty 
protected var _perspective_gen:NyARPerspectiveParamGenerator_O1

_pickup_ltproperty 
protected var _pickup_lt:NyARIntPoint2d

_resolutionproperty 
protected var _resolution:int

_sizeproperty 
protected var _size:NyARIntSize

Constructor Detail
NyARColorPatt_Perspective()Constructor
public function NyARColorPatt_Perspective(i_width:int, i_height:int, i_point_per_pix:int, i_edge_percentage:int = -1)

例えば、64

Parameters
i_width:int — 取得画像の解像度幅
 
i_height:int — 取得画像の解像度高さ
 
i_point_per_pix:int — 1ピクセルあたりの縦横サンプリング数。2なら2x2=4ポイントをサンプリングする。
 
i_edge_percentage:int (default = -1) — エッジ幅の割合(ARToolKit標準と同じなら、25)
Method Detail
getBuffer()method
public final function getBuffer():Object

Returns
Object
getBufferType()method 
public final function getBufferType():int

Returns
int
getHeight()method 
public final function getHeight():int

Returns
int
getRgbPixelReader()method 
public final function getRgbPixelReader():INyARRgbPixelReader

Returns
INyARRgbPixelReader
getSize()method 
public final function getSize():NyARIntSize

Returns
NyARIntSize
getWidth()method 
public final function getWidth():int

Returns
int
hasBuffer()method 
public final function hasBuffer():Boolean

Returns
Boolean
isEqualBufferType()method 
public final function isEqualBufferType(i_type_value:int):Boolean

Parameters

i_type_value:int

Returns
Boolean
pickFromRaster()method 
public function pickFromRaster(image:INyARRgbRaster, i_vertexs:Vector.<NyARIntPoint2d>):Boolean

Parameters

image:INyARRgbRaster
 
i_vertexs:Vector.<NyARIntPoint2d>

Returns
Boolean

See also

setEdgeSize()method 
public function setEdgeSize(i_x_edge:int, i_y_edge:int, i_resolution:int):void

矩形領域のエッジサイズを指定します。 エッジの計算方法は以下の通りです。 1.マーカ全体を(i_x_edge+width)x(i_y_edge+height)の解像度でパラメタを計算します。 2.ピクセルの取得開始位置を(i_x_edge/2,i_y_edge/2)へ移動します。 3.開始位置から、width x height個のピクセルを取得します。 ARToolKit標準マーカの場合は、width/2,height/2を指定してください。

Parameters

i_x_edge:int
 
i_y_edge:int
 
i_resolution:int

setEdgeSizeByPercent()method 
public function setEdgeSizeByPercent(i_x_percent:int, i_y_percent:int, i_resolution:int):void

Parameters

i_x_percent:int
 
i_y_percent:int
 
i_resolution:int

wrapBuffer()method 
public final function wrapBuffer(i_ref_buf:Object):void

Parameters

i_ref_buf:Object