public class NyARColorPatt_O3 extends NyARColorPatt_Base
NyARColorPatt_Base
を展開して高速化したクラスです。コンストラクタと説明 |
---|
NyARColorPatt_O3(int i_width,
int i_height)
コンストラクタです。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
pickFromRaster(INyARRgbRaster image,
NyARIntPoint2d[] i_vertexs)
この関数は、ラスタのi_vertexsで定義される四角形からパターンを取得して、インスタンスに格納します。
|
createInterface
getBuffer, getBufferType, getPixel, getPixelSet, setPixel, setPixel, setPixels, wrapBuffer
createInstance, createInstance, createInstance, getHeight, getSize, getWidth, hasBuffer, isEqualBufferType, main
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuffer, getBufferType, getHeight, getSize, getWidth, hasBuffer, isEqualBufferType, wrapBuffer
getPixel, getPixelSet, setPixel, setPixel, setPixels
public NyARColorPatt_O3(int i_width, int i_height)
i_width
- ラスタのサイズi_height
- ラスタのサイズNyARRuntimeException
public boolean pickFromRaster(INyARRgbRaster image, NyARIntPoint2d[] i_vertexs) throws NyARRuntimeException
pickFromRaster
インタフェース内 INyARColorPatt
pickFromRaster
クラス内 NyARColorPatt_Base
image
- 取得元の画像です。i_vertexs
- 収録元画像上の、4頂点を格納した配列です。要素数は4である必要があります。NyARRuntimeException