OSDN Git Service

[backup]NyARToolkit
authornyatla <nyatla@7cac0a50-4618-4814-88d0-24b83990f816>
Thu, 21 Jan 2010 03:51:17 +0000 (03:51 +0000)
committernyatla <nyatla@7cac0a50-4618-4814-88d0-24b83990f816>
Thu, 21 Jan 2010 03:51:17 +0000 (03:51 +0000)
+SingleARMarkerProcessorの認識敷居値の調整。

git-svn-id: http://svn.sourceforge.jp/svnroot/nyartoolkit/NyARToolkit@412 7cac0a50-4618-4814-88d0-24b83990f816

trunk/src/jp/nyatla/nyartoolkit/processor/SingleARMarkerProcesser.java

index f9c5d59..db59b2f 100644 (file)
@@ -60,8 +60,8 @@ public abstract class SingleARMarkerProcesser
                public final NyARSquare square=new NyARSquare();\r
                public double confidence=0.0;\r
                public int code_index=-1;               \r
-               public double cf_threshold_new = 0.30;\r
-               public double cf_threshold_exist = 0.15;\r
+               public double cf_threshold_new = 0.50;\r
+               public double cf_threshold_exist = 0.30;\r
                \r
                //参照\r
                private INyARRgbRaster _ref_raster;\r
@@ -298,6 +298,16 @@ public abstract class SingleARMarkerProcesser
                \r
                return;\r
        }\r
+       /**\r
+        * \r
+        * @param i_new_detect_cf\r
+        * @param i_exist_detect_cf\r
+        */\r
+       public void setConfidenceThreshold(int i_new_cf,double i_exist_cf)\r
+       {\r
+               this._detectmarker_cb.cf_threshold_exist=i_exist_cf;\r
+               this._detectmarker_cb.cf_threshold_new=i_new_cf;\r
+       }\r
 \r
        private NyARTransMatResult __NyARSquare_result = new NyARTransMatResult();\r
 \r