OSDN Git Service

[更新]NyARToolkit/nyatlaブランチ-2.0.0候補
[nyartoolkit-and/nyartoolkit-and.git] / branches / nyatla / src / jp / nyatla / nyartoolkit / detector / NyARSingleDetectMarker.java
index 39a6f09..91c09a9 100644 (file)
@@ -136,7 +136,7 @@ public class NyARSingleDetectMarker
                }\r
 \r
                // 評価基準になるパターンをイメージから切り出す\r
-               if (!this._patt.pickFromRaster(i_raster, l_square_list.getItem(0))) {\r
+               if (!this._patt.pickFromRaster(i_raster, (NyARSquare)l_square_list.getItem(0))) {\r
                        // パターンの切り出しに失敗\r
                        return false;\r
                }\r
@@ -152,7 +152,7 @@ public class NyARSingleDetectMarker
                double confidence = this._match_patt.getConfidence();\r
                for (int i = 1; i < number_of_square; i++) {\r
                        // 次のパターンを取得\r
-                       this._patt.pickFromRaster(i_raster, l_square_list.getItem(i));\r
+                       this._patt.pickFromRaster(i_raster, (NyARSquare)l_square_list.getItem(i));\r
                        // 評価器にセットする。\r
                        this._match_patt.setPatt(this._patt);\r
                        // コードと比較する\r
@@ -167,7 +167,7 @@ public class NyARSingleDetectMarker
                        confidence = c2;\r
                }\r
                // マーカー情報を保存\r
-               this._detected_square = l_square_list.getItem(square_index);\r
+               this._detected_square = (NyARSquare)l_square_list.getItem(square_index);\r
                this._detected_direction = direction;\r
                this._detected_confidence = confidence;\r
                return true;\r