Package | jp.nyatla.nyartoolkit.as3.core.pickup |
Class | public class NyARColorPatt_Perspective_O2 |
Inheritance | NyARColorPatt_Perspective_O2 NyARColorPatt_Perspective Object |
Method | Defined By | ||
---|---|---|---|
NyARColorPatt_Perspective_O2(i_width:int, i_height:int, i_resolution:int, i_edge_percentage:int) | NyARColorPatt_Perspective_O2 | ||
getBuffer():Object | NyARColorPatt_Perspective | ||
getBufferType():int | 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 | ||
[override]
| NyARColorPatt_Perspective_O2 | ||
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 |
NyARColorPatt_Perspective_O2 | () | Constructor |
public function NyARColorPatt_Perspective_O2(i_width:int, i_height:int, i_resolution:int, i_edge_percentage:int)
i_width:int | |
i_height:int | |
i_resolution:int | |
i_edge_percentage:int |
pickFromRaster | () | method |
override public function pickFromRaster(image:INyARRgbRaster, i_vertexs:Vector.<NyARIntPoint2d>):Boolean
Parameters
image:INyARRgbRaster | |
i_vertexs:Vector.<NyARIntPoint2d> |
Boolean |
See also