OSDN Git Service

初期インポート。
[nyartoolkit-and/nyartoolkit-android-0.9.git] / src / jp / nyatla / nyartoolkit / core / raster / NyARRaster.java
diff --git a/src/jp/nyatla/nyartoolkit/core/raster/NyARRaster.java b/src/jp/nyatla/nyartoolkit/core/raster/NyARRaster.java
new file mode 100644 (file)
index 0000000..ffda8b6
--- /dev/null
@@ -0,0 +1,62 @@
+/* \r
+ * PROJECT: NyARToolkit\r
+ * --------------------------------------------------------------------------------\r
+ * This work is based on the original ARToolKit developed by\r
+ *   Hirokazu Kato\r
+ *   Mark Billinghurst\r
+ *   HITLab, University of Washington, Seattle\r
+ * http://www.hitl.washington.edu/artoolkit/\r
+ *\r
+ * The NyARToolkit is Java version ARToolkit class library.\r
+ * Copyright (C)2008 R.Iizuka\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * \r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ * \r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this framework; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ * \r
+ * For further information please contact.\r
+ *     http://nyatla.jp/nyatoolkit/\r
+ *     <airmail(at)ebony.plala.or.jp>\r
+ * \r
+ */\r
+package jp.nyatla.nyartoolkit.core.raster;\r
+\r
+public interface NyARRaster{\r
+    //RGBの合計値を返す\r
+    public int getPixelTotal(int i_x,int i_y);\r
+    /**\r
+     * 一行単位でi_row番目の合計値配列を計算して返す。\r
+     * @param i_row\r
+     * @param o_line\r
+     * getWidth()の戻り値以上のサイズが必要。\r
+     */\r
+    public void getPixelTotalRowLine(int i_row,int[] o_line);\r
+    public int getWidth();\r
+    public int getHeight();\r
+    public void getPixel(int i_x,int i_y,int[] i_rgb);\r
+    /**\r
+     * 複数のピクセル値をi_rgbへ返します。\r
+     * @param i_x\r
+     * xのインデックス配列\r
+     * @param i_y\r
+     * yのインデックス配列\r
+     * @param i_num\r
+     * 返すピクセル値の数\r
+     * @param i_rgb\r
+     * ピクセル値を返すバッファ\r
+     */\r
+    public void getPixelSet(int[] i_x,int i_y[],int i_num,int[] o_rgb);\r
+}\r
+\r
+\r
+\r