From ddd20b10306bf47117e6cd33be97df06f86d6500 Mon Sep 17 00:00:00 2001
From: nyatla
Date: Fri, 7 Jan 2011 07:37:36 +0000
Subject: [PATCH] git-svn-id:
http://svn.sourceforge.jp/svnroot/nyartoolkit/NyARToolkit/trunk@793
7cac0a50-4618-4814-88d0-24b83990f816
---
.../nyatla/nyartoolkit/core/INyARDisposable.java | 2 +-
lib/src/jp/nyatla/nyartoolkit/core/NyARCode.java | 2 +-
lib/src/jp/nyatla/nyartoolkit/core/NyARMat.java | 2 +-
.../INyARHistogramAnalyzer_Threshold.java | 31 +++++-
...yARHistogramAnalyzer_DiscriminantThreshold.java | 43 +++++++--
.../NyARHistogramAnalyzer_KittlerThreshold.java | 33 ++++++-
.../NyARHistogramAnalyzer_SlidePTile.java | 38 ++++++--
.../raster/NyARRasterAnalyzer_Histogram.java | 107 ++++++++++++++++++---
.../threshold/INyARRasterThresholdAnalyzer.java | 21 ++++
.../NyARRasterThresholdAnalyzer_SlidePTile.java | 65 ++++++++++++-
.../nyartoolkit/core/labeling/NyARLabelInfo.java | 10 +-
.../core/labeling/NyARLabelOverlapChecker.java | 30 +++---
.../detector/NyARCustomSingleDetectMarker.java | 106 ++++++++++++--------
.../nyartoolkit/detector/NyARDetectMarker.java | 62 ++++++++----
.../detector/NyARSingleDetectMarker.java | 91 ++++++++++++------
15 files changed, 504 insertions(+), 139 deletions(-)
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/INyARDisposable.java b/lib/src/jp/nyatla/nyartoolkit/core/INyARDisposable.java
index ceff0fc..7ab71c7 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/INyARDisposable.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/INyARDisposable.java
@@ -31,7 +31,7 @@
package jp.nyatla.nyartoolkit.core;
/**
- * ãªãã¸ã§ã¯ãç ´æ£ã®ã¿ã¤ãã³ã°ãåãåãã¤ã³ã¿ãã§ã¤ã¹ã§ãã
+ * ãã®ã¤ã³ã¿ãã§ã¤ã¹ã¯ããªãã¸ã§ã¯ãç ´æ£ã®ã¿ã¤ãã³ã°ãåãåãé¢æ°ãå®ç¾©ãã¾ãã
* ã¢ã³ããã¼ã¸ãªã½ã¼ã¹ã®ç ´æ£ã³ã³ããã¼ã«ãããªãã¸ã§ã¯ããã¼ã«ã®å¶å¾¡ã«ä½¿ãã¾ãã
*/
public interface INyARDisposable
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/NyARCode.java b/lib/src/jp/nyatla/nyartoolkit/core/NyARCode.java
index 7b4adde..707f2a5 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/NyARCode.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/NyARCode.java
@@ -147,7 +147,7 @@ class NyARCodeFileReader
}
/**
- * ARToolKitã®ãã¼ã«ã¼ãã¿ã¼ã³1åã®ãã¼ã¿ãæ ¼ç´ããã¯ã©ã¹ã§ãã
+ * ãã®ã¯ã©ã¹ã¯ãARToolKitã®ãã¼ã«ã¼ãã¿ã¼ã³1åã®ãã¼ã¿ãæ ¼ç´ãã¾ãã
* ãã¼ã«ã¼ãã¿ã¼ã³ã®ããããã£ã¨ããã¼ã¿ã®ãã¼ãæ©è½ãæä¾ãã¾ãã
*/
public class NyARCode
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/NyARMat.java b/lib/src/jp/nyatla/nyartoolkit/core/NyARMat.java
index f627667..e601fe9 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/NyARMat.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/NyARMat.java
@@ -34,7 +34,7 @@ import jp.nyatla.nyartoolkit.NyARException;
import jp.nyatla.nyartoolkit.core.types.matrix.*;
/**
- * å¯å¤ãµã¤ãºã®è¡åè¨ç®ã¯ã©ã¹ã§ãã
+ * ãã®ã¯ã©ã¹ã¯ãå¯å¤ãµã¤ãºã®è¡åè¨ç®æ©è½ãæä¾ãã¾ãã
* ARToolKitã®ARMatæ§é ä½ã¨ããã®å¦çé¢æ°ã«ç¸å½ããæ©è½ãããã¾ãã
* 2x2,3x3,4x4è¡åã«ã¤ãã¦ã¯ãNyAToolKitã®è¡åè¨ç®ã¯ã©ã¹({@link NyARDoubleMatrix44},{@link NyARDoubleMatrix33},{@link NyARDoubleMatrix22},)
* ãããã¾ãã®ã§ããã¡ãã使ã£ã¦ãã ããã
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/INyARHistogramAnalyzer_Threshold.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/INyARHistogramAnalyzer_Threshold.java
index 6b9a5a2..5b18c9e 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/INyARHistogramAnalyzer_Threshold.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/INyARHistogramAnalyzer_Threshold.java
@@ -1,19 +1,42 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.histogram;
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;
/**
- * æ·å±
å¤å¤å¥ãã¹ãã°ã©ã åæå¨ã®ãæ¨æºçãªã¤ã³ã¿ãã§ã¤ã¹ãå®ç¾©ãã¾ãã
- *
+ * ãã®ã¤ã³ã¿ãã§ã¤ã¹ã¯ããã¹ãã°ã©ã ããæ·å±
å¤ãæ¢ç´¢ããé¢æ°ãå®ç¾©ãã¾ãã
*/
public interface INyARHistogramAnalyzer_Threshold
{
/**
- * ãã¹ãã°ã©ã ããé¾å¤æ¢ç´¢ããã¾ãã
+ * ãã¹ãã°ã©ã ããé¾å¤ãï¼åæ¢ç´¢ããé¢æ°ãå®è£
ãã¾ãã
* @param i_histogram
* åæãããã¹ãã°ã©ã ãªãã¸ã§ã¯ã
* @return
- * æ·å±
å¤ãè¿ãã¾ãã
+ * æ·å±
å¤ãè¿ãã¾ããå¤ç¯å²ã¯ã{@link NyARHistogram}ã®ããããã£ãã決å®ãã¾ãã
*/
public int getThreshold(NyARHistogram i_histogram);
}
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_DiscriminantThreshold.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_DiscriminantThreshold.java
index af81ed3..11e1bff 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_DiscriminantThreshold.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_DiscriminantThreshold.java
@@ -1,18 +1,41 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.histogram;
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;
/**
- * æ·å±
å¤ãæ±ãããã¹ãã°ã©ã åæå¨ã§ãã
- * å¤å¥æ³ã§é¾å¤ãæ±ãã¾ãã
- * @note
- * ç»ç´ æ°ã2048^2ã«æºããªãå ´åã¯ãfixedint(24-8)ã§è¨ç®ã§ãã¾ãã
+ * ãã®ã¯ã©ã¹ã¯ãå¤å¥æ³ãç¨ãã¦æ·å±
å¤ãæ±ããæ©è½ãæä¾ãã¾ãã
+ * memo:ç»ç´ æ°ã2048^2ã«æºããªãå ´åã¯ãfixedint(24-8)ã§è¨ç®ã§ãã¾ãã
*/
public class NyARHistogramAnalyzer_DiscriminantThreshold implements INyARHistogramAnalyzer_Threshold
{
private double _score;
/**
- * @override
+ * ãã®é¢æ°ã¯ãå¤å¥æ³ãç¨ãã¦æ·å±
å¤ã1åæ±ãã¾ããæ·å±
å¤ã®ç¯å²ã¯ãi_histogramå¼æ°ã®ç¯å²ã¨åãã§ãã
+ * é¢æ°ã¯ãthisã®ããããã£ãæ´æ°ãã¾ãã
*/
public int getThreshold(NyARHistogram i_histogram)
{
@@ -65,18 +88,18 @@ public class NyARHistogramAnalyzer_DiscriminantThreshold implements INyARHistogr
return th;
}
/**
- * æå¾ã«å®è¡ããgetThresholdã®ã¹ã³ã¢ãè¿ãã¾ãã
- * ã¹ã³ã¢ã¯æ£è¦åãããåé¢åº¦ã§ãã1.0>n>0.0ã®å¤ãåãã¾ãã
- * 0.7以ä¸ãªãæ¦ãåå³°çã§æããã¨ã示ãã¾ãã
+ * æå¾ã«å®è¡ãã{@link #getThreshold}ã®ã¹ã³ã¢ãè¿å´ãã¾ãã
* @return
- * åé¢åº¦
+ * ã¹ã³ã¢å¤ãç¯å²ã¯0<=n<=1.0ã®éã§ãã
*/
public final double getLastScore()
{
return this._score;
}
/**
- * Debug
+ * ãããã¯ç¨é¢æ°
+ * @param args
+ * mainé¢æ°å¼æ°
*/
public static void main(String[] args)
{
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_KittlerThreshold.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_KittlerThreshold.java
index fd99fda..7e4352a 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_KittlerThreshold.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_KittlerThreshold.java
@@ -1,15 +1,39 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.histogram;
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;
/**
- * kittlerThresholdã®æ¹å¼ã§é¾å¤ãæ±ãã¾ãã
+ * ãã®ã¯ã©ã¹ã¯ãkittlerThresholdãç¨ãã¦æ·å±
å¤ãæ±ããæ©è½ãæä¾ãã¾ãã
*/
public class NyARHistogramAnalyzer_KittlerThreshold implements INyARHistogramAnalyzer_Threshold
{
/**
- * @override
+ * ãã®é¢æ°ã¯ãkittlerThresholdãç¨ãã¦æ·å±
å¤ã1åæ±ãã¾ããæ·å±
å¤ã®ç¯å²ã¯ãi_histogramå¼æ°ã®ç¯å²ã¨åãã§ãã
*/
public int getThreshold(NyARHistogram i_histogram)
{
@@ -74,6 +98,11 @@ public class NyARHistogramAnalyzer_KittlerThreshold implements INyARHistogramAna
}
return th;//129//7.506713872738873
}
+ /**
+ * ãããã¯ç¨é¢æ°
+ * @param args
+ * mainé¢æ°å¼æ°
+ */
public static void main(String[] args)
{
NyARHistogram data=new NyARHistogram(256);
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_SlidePTile.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_SlidePTile.java
index 369b12b..5fbd880 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_SlidePTile.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/histogram/NyARHistogramAnalyzer_SlidePTile.java
@@ -1,14 +1,35 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.histogram;
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;
-
/**
- * PTileã使ã£ãæ·å±
å¤æ±ºå®ã¯ã©ã¹ã§ãã
- * æç¹ã¨æç¹ãåæ¹åããPTileæ³ã§æ·å±
å¤ãè¨ç®ãããã®ä¸å¤®å¤ãé¾å¤ã¨ãã¾ãã
- *
- *
+ * ãã®ã¯ã©ã¹ã¯ãæç¹ã»æç¹ã®PTailæ³ã§æ±ããæ·å±
å¤ãåç®ãã¦ãæ·å±
å¤ãè¨ç®ãã¾ãã
+ * æ·å±
å¤æ±ºå®ã®ã¢ã«ã´ãªãºã - æç¹ã»æç¹ä¸¡å´ããPTailæ³ãç¨ãã¦ä¸å®å²åã®ç»ç´ ãåãé¤ãããã®ä¸éå¤ãæ±ãã¾ãã
*/
public class NyARHistogramAnalyzer_SlidePTile implements INyARHistogramAnalyzer_Threshold
{
@@ -16,14 +37,17 @@ public class NyARHistogramAnalyzer_SlidePTile implements INyARHistogramAnalyzer_
/**
* ã³ã³ã¹ãã©ã¯ã¿ã§ãã
* @param i_persentage
- * æ·å±
å¤ã¨ãããPTileã®ãã¼ã»ã³ãã¼ã¸å¤ãæå®ãã¾ãã
+ * æç¹ãæç¹ã®ä¸¡å´ããåãé¤ããç»ç´ ã®å²åãæå®ãã¾ãã0<n<50ã®ç¯å²ã§æå®ãã¾ãã
*/
public NyARHistogramAnalyzer_SlidePTile(int i_persentage)
{
assert (0 <= i_persentage && i_persentage <= 50);
//åæå
this._persentage=i_persentage;
- }
+ }
+ /**
+ * ãã®é¢æ°ã¯ãSlidePTileãç¨ãã¦æ·å±
å¤ã1åæ±ãã¾ããæ·å±
å¤ã®ç¯å²ã¯ãi_histogramå¼æ°ã®ç¯å²ã¨åãã§ãã
+ */
public int getThreshold(NyARHistogram i_histogram)
{
//ç·ãã¯ã»ã«æ°ãè¨ç®
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/NyARRasterAnalyzer_Histogram.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/NyARRasterAnalyzer_Histogram.java
index a4540d0..b8822e5 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/NyARRasterAnalyzer_Histogram.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/NyARRasterAnalyzer_Histogram.java
@@ -1,31 +1,74 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.raster;
import jp.nyatla.nyartoolkit.NyARException;
import jp.nyatla.nyartoolkit.core.raster.*;
import jp.nyatla.nyartoolkit.core.raster.rgb.*;
import jp.nyatla.nyartoolkit.core.types.*;
+
/**
- * ç»åã®ãã¹ãã°ã©ã ãè¨ç®ãã¾ãã
- * RGBã®å ´åã(R+G+B)/3ã®ãã¹ãã°ã©ã ãè¨ç®ãã¾ãã
- *
- *
+ * ãã®ã¯ã©ã¹ã¯ãã°ã¬ã¼ã¹ã±ã¼ã«ç»åã®ãã¹ãã°ã©ã ãè¨ç®ãã¾ãã
+ * memo: RGBç»åã®ã°ã¬ã¼ã¹ã±ã¼ã«åã¯åé¢ãå¿
è¦ï¼
*/
public class NyARRasterAnalyzer_Histogram
{
protected ICreateHistogramImpl _histImpl;
/**
- * ãã¹ãã°ã©ã 解æã®ç¸¦æ¹åã¹ãããæ°ãç¶æ¿ã¯ã©ã¹ã¯ãã®ã©ã¤ã³æ°ã¥ã¤
- * ã¹ãããããªãããã¹ãã°ã©ã è¨ç®ãè¡ããã¨ã
+ * ãã¹ãã°ã©ã 解æã®ç¸¦æ¹åã¹ãããæ°ã
+ * memo:ç¶æ¿ã¯ã©ã¹ã¯ãã®ã©ã¤ã³æ°ã¥ã¤ãã¹ãããããªãããã¹ãã°ã©ã è¨ç®ãè¡ããã¨ã
*/
protected int _vertical_skip;
-
+ /**
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * ã©ã¹ã¿ã®ç»ç´ ãã©ã¼ããããæå®ãã¦ããã¹ãã°ã©ã åæå¨ãä½ãã¾ãã
+ * @param i_raster_format
+ * å
¥åããã©ã¹ã¿ã®ç»ç´ ãã©ã¼ããããæå®ãã¾ãã
+ * {@link NyARBufferType#INT1D_GRAY_8}å½¢å¼ä»¥å¤ã®ç»ç´ ãã©ã¼ãããã®å ´åã¯ã解ææã«ã°ã¬ã¼ã¹ã±ã¼ã«åãè¡ãã¾ãã
+ * @param i_vertical_interval
+ * ç»ç´ ã¹ãã£ã³æã®ãY軸æ¹åã®ã¹ãããæ°ãæå®ãã¾ããæ°å¤ã大ããã»ã©é«éã«è§£æã§ãã¾ããã精度ã¯å£åãã¾ãã0以ä¸ãæå®ãã¦ãã ããã
+ * @throws NyARException
+ */
public NyARRasterAnalyzer_Histogram(int i_raster_format,int i_vertical_interval) throws NyARException
{
if(!initInstance(i_raster_format,i_vertical_interval)){
throw new NyARException();
}
}
+ /**
+ * ã¤ã³ã¹ã¿ã³ã¹ãåæåãã¾ãã
+ * ç¶æ¿ã¯ã©ã¹ãå®è£
ããã¨ãã«ã¯ããã®é¢æ°ããªã¼ãã©ã¤ããã¦ãã ããã
+ * @see #NyARRasterAnalyzer_Histogram(int i_raster_format,int i_vertical_interval)
+ * @param i_raster_format
+ * see Also.
+ * @param i_vertical_interval
+ * see Also.
+ * @return
+ * ã¤ã³ã¹ã¿ã³ã¹ã®åæåã«æåããã¨Trueãè¿ãã¾ãã
+ */
protected boolean initInstance(int i_raster_format,int i_vertical_interval)
{
switch (i_raster_format) {
@@ -55,8 +98,11 @@ public class NyARRasterAnalyzer_Histogram
this._vertical_skip=i_vertical_interval;
return true;
}
-
-
+ /**
+ * ç»ç´ ã¹ãã£ã³æã®ãY軸æ¹åã®ã¹ãããæ°ãæå®ãã¾ãã
+ * @param i_step
+ * æ°ããè¡ã¹ãããæ°
+ */
public void setVerticalInterval(int i_step)
{
assert(this._vertical_skip>0);
@@ -65,10 +111,11 @@ public class NyARRasterAnalyzer_Histogram
}
/**
- * o_histogramã«ãã¹ãã°ã©ã ãåºåãã¾ãã
+ * ã©ã¹ã¿ããããã¹ãã°ã©ã ãè¨ç®ãã¾ãã
* @param i_input
+ * 解æããã©ã¹ã¿ãªãã¸ã§ã¯ã
* @param o_histogram
- * @return
+ * 解æçµæãæ ¼ç´ãããã¹ãã°ã©ã ãªãã¸ã§ã¯ãããã¹ãã°ã©ã ã®ç¯å²ã¯ã256ã§ãããã¨ã
* @throws NyARException
*/
public void analyzeRaster(INyARRaster i_input,NyARHistogram o_histogram) throws NyARException
@@ -88,6 +135,16 @@ public class NyARRasterAnalyzer_Histogram
this._histImpl.createHistogram(i_input,0,0,size.w,size.h,o_histogram.data,this._vertical_skip);
return;
}
+ /**
+ * ã©ã¹ã¿ã®ä¸é¨åï¼ç©å½¢ï¼ããããã¹ãã°ã©ã ãè¨ç®ãã¾ãã
+ * @param i_input
+ * 解æããã©ã¹ã¿ãªãã¸ã§ã¯ã
+ * @param i_area
+ * 解æããç©å½¢ç¯å²ãã©ã¹ã¿ã®å
å´ã§ããäºãå¿
è¦ã
+ * @param o_histogram
+ * 解æçµæãæ ¼ç´ãããã¹ãã°ã©ã ãªãã¸ã§ã¯ãããã¹ãã°ã©ã ã®ç¯å²ã¯ã256ã§ãããã¨ã
+ * @throws NyARException
+ */
public void analyzeRaster(INyARRaster i_input,NyARIntRect i_area,NyARHistogram o_histogram) throws NyARException
{
@@ -106,11 +163,31 @@ public class NyARRasterAnalyzer_Histogram
return;
}
+ /**
+ * ãã®ã¤ã³ã¿ãã§ã¤ã¹ã¯ããã¹ãã°ã©ã 解æé¢æ°ãå®ç¾©ãã¾ãã
+ * ãã®ã¤ã³ã¿ãã§ã¤ã¹ãç¶æ¿ãã¦ãç»ç´ ãã©ã¼ãããæ¯ã®ãã¹ãã°ã©ã 解æé¢æ°ãå®è£
ãã¾ãã
+ */
protected interface ICreateHistogramImpl
{
+ /**
+ * ãã®é¢æ°ã«ã¯ãã©ã¹ã¿å
ã®ç©å½¢ç¯å²ãããã¹ãã°ã©ã ãä½æããæ©è½ãå®è£
ãã¾ãã
+ * @param i_raster
+ * 解æããã©ã¹ã¿ãªãã¸ã§ã¯ã
+ * @param i_l
+ * ç©å½¢ç¯å² -L
+ * @param i_t
+ * ç©å½¢ç¯å² -T
+ * @param i_w
+ * ç©å½¢ç¯å² -W
+ * @param i_h
+ * ç©å½¢ç¯å² -H
+ * @param o_histogram
+ * ãã¹ãã°ã©ã ãæ ¼ç´ãããªãã¸ã§ã¯ã
+ * @param i_skip
+ * è¡ã¹ãããæ°
+ */
public void createHistogram(INyARRaster i_raster,int i_l,int i_t,int i_w,int i_h, int[] o_histogram,int i_skip);
}
-
class NyARRasterThresholdAnalyzer_Histogram_INT1D_GRAY_8 implements ICreateHistogramImpl
{
public void createHistogram(INyARRaster i_raster,int i_l,int i_t,int i_w,int i_h, int[] o_histogram,int i_skip)
@@ -337,7 +414,11 @@ public class NyARRasterAnalyzer_Histogram
return;
}
}
-
+ /**
+ * ãããã¯ç¨é¢æ°
+ * @param args
+ * mainé¢æ°å¼æ°
+ */
public static void main(String[] args)
{
try{
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/INyARRasterThresholdAnalyzer.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/INyARRasterThresholdAnalyzer.java
index f316616..81581a0 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/INyARRasterThresholdAnalyzer.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/INyARRasterThresholdAnalyzer.java
@@ -29,8 +29,29 @@ import jp.nyatla.nyartoolkit.NyARException;
import jp.nyatla.nyartoolkit.core.raster.*;
import jp.nyatla.nyartoolkit.core.types.*;
+/**
+ * ãã®ã¤ã³ã¿ãã§ã¤ã¹ã¯ãã©ã¹ã¿ã®æ·å±
å¤ãåæããé¢æ°ãå®ç¾©ãã¾ãã
+ */
public interface INyARRasterThresholdAnalyzer
{
+ /**
+ * ãã®é¢æ°ã«ã¯ãã©ã¹ã¿å
¨ä½ã調æ»ãã¦ãæ·å±
å¤ãè¨ç®ãã¾ããé¢æ°ãå®è£
ãã¾ãã
+ * @param i_input
+ * 調æ»ããã©ã¹ã¿ãªãã¸ã§ã¯ãã
+ * @return
+ * æ·å±
å¤ã®å¤ãè¿ãã¾ãã
+ * @throws NyARException
+ */
public int analyzeRaster(INyARRaster i_input) throws NyARException;
+ /**
+ * ãã®é¢æ°ã«ã¯ãi_areaã§å®ç¾©ããã©ã¹ã¿ã®ä¸é¨ã調æ»ãã¦ãæ·å±
å¤ãè¨ç®ããé¢æ°ãå®è£
ãã¾ãã
+ * @param i_input
+ * 調æ»ããã©ã¹ã¿ãªãã¸ã§ã¯ãã
+ * @param i_area
+ * 調æ»ãè¡ãç¯å²ãæå®ã§ãã
+ * @return
+ * æ·å±
å¤ã®å¤ãè¿ãã¾ãã
+ * @throws NyARException
+ */
public int analyzeRaster(INyARRaster i_input,NyARIntRect i_area) throws NyARException;
}
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/NyARRasterThresholdAnalyzer_SlidePTile.java b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/NyARRasterThresholdAnalyzer_SlidePTile.java
index 1dce534..db69da8 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/NyARRasterThresholdAnalyzer_SlidePTile.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/analyzer/raster/threshold/NyARRasterThresholdAnalyzer_SlidePTile.java
@@ -1,3 +1,27 @@
+/*
+ * PROJECT: NyARToolkit(Extension)
+ * --------------------------------------------------------------------------------
+ * The NyARToolkit is Java edition ARToolKit class library.
+ * Copyright (C)2008-2009 Ryo Iizuka
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * For further information please contact.
+ * http://nyatla.jp/nyatoolkit/
+ * or
+ *
+ */
package jp.nyatla.nyartoolkit.core.analyzer.raster.threshold;
import jp.nyatla.nyartoolkit.NyARException;
@@ -6,21 +30,38 @@ import jp.nyatla.nyartoolkit.core.analyzer.raster.*;
import jp.nyatla.nyartoolkit.core.raster.INyARRaster;
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;
import jp.nyatla.nyartoolkit.core.types.NyARIntRect;
+
/**
- * æç¹ã¨æç¹ãPã¿ã¤ã«æ³ã§æ¤åºãã¦ããã®ä¸å¤®å¤ãé¾å¤ã¨ããã
- *
- *
+ * ãã®ã¯ã©ã¹ã¯ãç»åã®ãã¹ãã°ã©ã ãã{@link NyARHistogramAnalyzer_SlidePTile}ã«ããæ·å±
å¤æ¤åºãããæ©è½ãæä¾ãã¾ãã
*/
public class NyARRasterThresholdAnalyzer_SlidePTile implements INyARRasterThresholdAnalyzer
{
+ /** ãã¹ãã°ã©ã ãªãã¸ã§ã¯ã*/
protected NyARRasterAnalyzer_Histogram _raster_analyzer;
private NyARHistogramAnalyzer_SlidePTile _sptile;
private NyARHistogram _histogram;
+ /**
+ * ãã®é¢æ°ã¯ããã¹ãã°ã©ã ä½ææã®è¡ã¹ãããæ°ãæå®ãã¾ãã
+ * @see {@link NyARRasterAnalyzer_Histogram#setVerticalInterval}
+ * @param i_step
+ * æ°ããè¡ã¹ãããæ°
+ */
public void setVerticalInterval(int i_step)
{
this._raster_analyzer.setVerticalInterval(i_step);
return;
}
+ /**
+ * ã³ã³ã¹ãã©ã¯ã¿ã
+ * {@link NyARHistogramAnalyzer_SlidePTile}ã«æ¸¡ããã©ã¡ã¼ã¿ãæå®ãã¦ãæ·å±
å¤åæå¨ãä½æãã¾ãã
+ * @param i_persentage
+ * {@link NyARHistogramAnalyzer_SlidePTile#NyARHistogramAnalyzer_SlidePTile}ã¸æ¸¡ãåæãã©ã¡ã¼ã¿ã§ãã
+ * @param i_raster_format
+ * åæããã©ã¹ã¿ã®ç»ç´ ãã©ã¼ãããã§ãã
+ * @param i_vertical_interval
+ * ãã¹ãã°ã©ã ä½ææã®è¡ã¹ãããæ°ã§ãã
+ * @throws NyARException
+ */
public NyARRasterThresholdAnalyzer_SlidePTile(int i_persentage,int i_raster_format,int i_vertical_interval) throws NyARException
{
assert (0 <= i_persentage && i_persentage <= 50);
@@ -31,16 +72,34 @@ public class NyARRasterThresholdAnalyzer_SlidePTile implements INyARRasterThresh
this._sptile=new NyARHistogramAnalyzer_SlidePTile(i_persentage);
this._histogram=new NyARHistogram(256);
}
+ /**
+ * ãã®é¢æ°ã¯ãã¤ã³ã¹ã¿ã³ã¹ã®åæåé¢æ°ã§ãã
+ * ç¶æ¿ã¯ã©ã¹ãä½ãã¨ãã«ã¯ããã®é¢æ°ããªã¼ãã©ã¤ããã¾ãã
+ * @param i_raster_format
+ * @see NyARRasterThresholdAnalyzer_SlidePTile#NyARRasterThresholdAnalyzer_SlidePTile(int, int, int)
+ * @param i_vertical_interval
+ * @see NyARRasterThresholdAnalyzer_SlidePTile#NyARRasterThresholdAnalyzer_SlidePTile(int, int, int)
+ * @return
+ * åæåã«æåããã¨ãtrueãè¿ãã¾ãã
+ * @throws NyARException
+ */
protected boolean initInstance(int i_raster_format,int i_vertical_interval) throws NyARException
{
this._raster_analyzer=new NyARRasterAnalyzer_Histogram(i_raster_format,i_vertical_interval);
return true;
}
+ /**
+ * {@link NyARHistogramAnalyzer_SlidePTile}ã«ããæ·å±
å¤åæãå®è¡ãã¾ãã
+ */
public int analyzeRaster(INyARRaster i_input) throws NyARException
{
this._raster_analyzer.analyzeRaster(i_input, this._histogram);
return this._sptile.getThreshold(this._histogram);
}
+ /**
+ * {@link NyARHistogramAnalyzer_SlidePTile}ã«ããæ·å±
å¤åæãå®è¡ãã¾ãã
+ * ãã®é¢æ°ã¯æªå®è£
ã§ãã
+ */
public int analyzeRaster(INyARRaster i_input,NyARIntRect i_area) throws NyARException
{
throw new NyARException();
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelInfo.java b/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelInfo.java
index 74a85cd..632e114 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelInfo.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelInfo.java
@@ -32,17 +32,25 @@ package jp.nyatla.nyartoolkit.core.labeling;
/**
- *
+ * ãã®ã¯ã©ã¹ã¯ãã©ã¹ãªã³ã°çµæï¼åãæ ¼ç´ãããã¼ã¿åã§ãã
+ * ã©ãã«ï¼åã®é åæ
å ±ãæ ¼ç´ãã¾ãã
*
*/
public class NyARLabelInfo
{
+ /** é åã®ç»ç´ æ°*/
public int area;
+ /** é åç¯å²ã®å³ç«¯*/
public int clip_r;
+ /** é åç¯å²ã®å·¦ç«¯*/
public int clip_l;
+ /** é åç¯å²ã®ä¸ç«¯*/
public int clip_b;
+ /** é åç¯å²ã®ä¸ç«¯*/
public int clip_t;
+ /** é åã®ä¸å¿ä½ç½®(x)*/
public double pos_x;
+ /** é åã®ä¸å¿ä½ç½®(y)*/
public double pos_y;
}
diff --git a/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelOverlapChecker.java b/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelOverlapChecker.java
index 7e4b033..6b52d26 100644
--- a/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelOverlapChecker.java
+++ b/lib/src/jp/nyatla/nyartoolkit/core/labeling/NyARLabelOverlapChecker.java
@@ -34,16 +34,23 @@ import java.lang.reflect.Array;
/**
- * ã©ãã«å士ã®éãªãï¼å
å
é¢ä¿ï¼ã調ã¹ãã¯ã©ã¹ã§ãã
- * ã©ãã«ãªã¹ãã«å
å
ããã©ãã«ãèç©ããããã«ã¿ã¼ã²ããã®ã©ãã«ãå
å
ããã¦ããã ã確èªãã¾ãã
+ * ãã®ã¯ã©ã¹ã¯ãã©ãã«å士ã®éãªãé¢ä¿ã調ã¹ãæ©è½ãæä¾ãã¾ãã
+ * éãªãã®å¤å®ã¢ã«ã´ãªãºã ã¯ãARToolKitã®ããã¨åä¸ã§ãã
+ * ç»é²æ¸ã®ã©ãã«ãªã¹ãã«å¯¾ãã¦ã調æ»å¯¾è±¡ã®ã©ãã«ãéãªã£ã¦ãããã調ã¹ã¾ãã
*/
public class NyARLabelOverlapChecker
{
private T[] _labels;
private int _length;
private Class _element_type;
- /*
- */
+ /**
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * ãã®é¢æ°ã¯ãNyARToolkitã®ç©å½¢æ¤åºã¯ã©ã¹ãã使ãã¾ãã
+ * @param i_max_label
+ * ãªã¹ãã®æ大ç»é²æ°
+ * @param i_element_type
+ * ãªã¹ãã®ãã¼ã¿å
+ */
@SuppressWarnings("unchecked")
public NyARLabelOverlapChecker(int i_max_label,Class i_element_type)
{
@@ -52,9 +59,9 @@ public class NyARLabelOverlapChecker
}
/**
- * ãã§ãã¯å¯¾è±¡ã®ã©ãã«ã追å ããã
- *
+ * ãã®é¢æ°ã¯ããã§ãã¯ãªã¹ãã«ã©ãã«ã®åç
§ã追å ãã¾ãã
* @param i_label_ref
+ * 追å ããã©ãã«ã®åç
§å¤
*/
public void push(T i_label_ref)
{
@@ -63,10 +70,11 @@ public class NyARLabelOverlapChecker
}
/**
- * ç¾å¨ãªã¹ãã«ããã©ãã«ã¨éãªã£ã¦ããããè¿ãã
- *
+ * ãã®é¢æ°ã¯ããã§ãã¯ãªã¹ãã«ããã©ãã«ã¨ãä¸ããããã©ãã«ããéãªã£ã¦ãããã調ã¹ã¾ãã
* @param i_label
- * @return ä½ããã®ã©ãã«ã®å
å´ã«ãããªãã°false,ç¬ç«ããã©ãã«ã§ããå¯è½æ§ãé«ããã°trueã§ãï¼
+ * 調æ»ããã©ãã«
+ * @return
+ * ä½ããã®ã©ãã«ã®å
å´ã«ãããªãã°false,ç¬ç«ããã©ãã«ã§ããå¯è½æ§ãé«ããã°trueã§ãï¼
*/
public boolean check(T i_label)
{
@@ -87,9 +95,9 @@ public class NyARLabelOverlapChecker
return true;
}
/**
- * æ大i_max_labelåã®ã©ãã«ãèç©ã§ããããã«ãªãã¸ã§ã¯ãããªã»ãããã
- *
+ * ãã§ãã¯ãªã¹ãã®æ大æ°ãå¤æ´ãã¾ãã
* @param i_max_label
+ * æ°ãããã§ãã¯ãªã¹ãã®å¤§ãããè¨å®ãã¾ãã
*/
@SuppressWarnings("unchecked")
public void setMaxLabels(int i_max_label)
diff --git a/lib/src/jp/nyatla/nyartoolkit/detector/NyARCustomSingleDetectMarker.java b/lib/src/jp/nyatla/nyartoolkit/detector/NyARCustomSingleDetectMarker.java
index 62a6fb6..722b334 100644
--- a/lib/src/jp/nyatla/nyartoolkit/detector/NyARCustomSingleDetectMarker.java
+++ b/lib/src/jp/nyatla/nyartoolkit/detector/NyARCustomSingleDetectMarker.java
@@ -44,16 +44,12 @@ import jp.nyatla.nyartoolkit.core.types.*;
import jp.nyatla.nyartoolkit.core.squaredetect.*;
-
-
/**
- * ç»åããARCodeã«æãä¸è´ãããã¼ã«ã¼ã1åæ¤åºãããã®å¤æè¡åãè¨ç®ããã¯ã©ã¹ã§ãã
- * å¤æè¡åãæ±ããã«ã¯ãdetectMarkerLiteé¢æ°ã«ã©ã¹ã¿ã¤ã¡ã¼ã¸ãå
¥åãã¦ãè¨ç®å¯¾è±¡ã®ç©å½¢ãç¹å®ãã¾ãã
- * detectMarkerLiteãæåããã¨ãgetTransmationMatrixçã®é¢æ°ã使ç¨å¯è½ãªç¶æ
ã«ãªããå¤æè¡åãæ±ãããã¨ãã§ãã¾ãã
- *
- *
+ * ãã®ã¯ã©ã¹ã¯ã1åã®ãã¼ã«ãåãæ±ããã¼ã«æ¤åºå¨ã®ãã¼ã¹ã¯ã©ã¹ã§ãã
+ * ã¢ããªã±ã¼ã·ã§ã³ããã¯ããã®ã¯ã©ã¹ãç¶æ¿ãã{@link NyARSingleDetectMarker}ã使ãã¾ãã
+ * ç»é²ããï¼åã®ARãã¼ã«ã«å¯¾å¿ãããã¼ã«ãå
¥åç»åããæ¤åºãããã®å¤æè¡åã¨ä¸è´åº¦ãè¿ãã¾ãã
*/
-public class NyARCustomSingleDetectMarker
+public abstract class NyARCustomSingleDetectMarker
{
/** ä¸è´ç*/
private double _confidence;
@@ -72,8 +68,11 @@ public class NyARCustomSingleDetectMarker
private NyARIntPoint2d[] __ref_vertex=new NyARIntPoint2d[4];
/**
- * ç©å½¢ãè¦ä»ãããã³ã«å¼ã³åºããã¾ãã
- * çºè¦ããç©å½¢ã®ãã¿ã¼ã³ãæ¤æ»ãã¦ãæ¹ä½ãèæ
®ããé ç¹ãã¼ã¿ã確ä¿ãã¾ãã
+ * å
é¨é¢æ°ã§ãã
+ * ãã®é¢æ°ã¯ãthisã®äºæ¬¡å
ç©å½¢æ
å ±ããããã£ãæ´æ°ãã¾ãã
+ * @param i_coord
+ * @param i_vertex_index
+ * @throws NyARException
*/
protected void updateSquareInfo(NyARIntCoordinates i_coord,int[] i_vertex_index) throws NyARException
{
@@ -118,18 +117,41 @@ public class NyARCustomSingleDetectMarker
private boolean _is_continue = false;
private NyARSquareContourDetector _square_detect;
- protected INyARTransMat _transmat;
- //ç»å¦çç¨
+ private NyARRectOffset _offset;
private NyARBinRaster _bin_raster;
- protected INyARRasterFilter_Rgb2Bin _tobin_filter;
+ private INyARTransMat _transmat;
- private NyARRectOffset _offset;
+
+ //ç»å¦çç¨
+ protected INyARRasterFilter_Rgb2Bin _tobin_filter;
+ /**
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * å®éã®åæåã¯ãç¶æ¿ã¯ã©ã¹ããã{@link #initInstance}é¢æ°ãã³ã¼ã«ãã¦å®è¡ãã¾ãã
+ */
protected NyARCustomSingleDetectMarker()
{
return;
}
+ /**
+ * ãã®é¢æ°ã¯ãã¤ã³ã¹ã¿ã³ã¹ãåæåãã¦ã¾ãã
+ * @param i_patt_inst
+ * ãã¿ã¼ã³åå¾ãªãã¸ã§ã¯ããæå®ãã¾ãããã®è§£å度ã¯ãi_ref_codeå¼æ°ã®è§£å度ã¨åä¸ã§ããå¿
è¦ãããã¾ãã
+ * @param i_sqdetect_inst
+ * ç©å½¢æ¤åºå¨ã®ãªãã¸ã§ã¯ããæå®ãã¾ãã
+ * @param i_transmat_inst
+ * å¤æè¡åè¨ç®å¨ã®ãªãã¸ã§ã¯ããæå®ãã¾ãã
+ * @param i_filter
+ * ç»åã®ï¼å¤åãªãã¸ã§ã¯ããæå®ãã¾ãã
+ * @param i_ref_param
+ * ã«ã¡ã©ãã©ã¡ã¼ã¿ãªãã¸ã§ã¯ãã®åç
§å¤ãæå®ãã¾ãã
+ * @param i_ref_code
+ * æ¤åºããARãã¼ã«ãæ ¼ç´ãããªãã¸ã§ã¯ãã®åç
§å¤ãæå®ãã¾ãã
+ * @param i_marker_width
+ * ãã¼ã«ãç©çãµã¤ãºããmmåä½ã§æå®ãã¾ãã
+ * @throws NyARException
+ */
protected void initInstance(
INyARColorPatt i_patt_inst,
NyARSquareContourDetector i_sqdetect_inst,
@@ -155,22 +177,19 @@ public class NyARCustomSingleDetectMarker
this._offset=new NyARRectOffset();
this._offset.setSquare(i_marker_width);
return;
-
}
-
-
-
/**
- * i_imageã«ãã¼ã«ã¼æ¤åºå¦çãå®è¡ããçµæãè¨é²ãã¾ãã
- *
+ * ãã®é¢æ°ã¯ãç»åããç»é²æ¸ã®ãã¼ã«æ¤åºãè¡ãã¾ãã
+ * ãã¼ã«ã®æ¤åºã«æåããã¨ãthisã®ããããã£ã«ãã¼ã«ã®äºæ¬¡å
ä½ç½®ãè¨é²ãã¾ãã
+ * é¢æ°ã®æåå¾ã¯ããã¼ã«ã®å§¿å¢è¡åã¨ãä¸è´åº¦ãããããã{@link #getTransmationMatrix}ã¨{@link #getConfidence}ããå¾ããã¨ãã§ãã¾ãã
* @param i_raster
- * ãã¼ã«ã¼ãæ¤åºããã¤ã¡ã¼ã¸ãæå®ãã¾ããã¤ã¡ã¼ã¸ãµã¤ãºã¯ãã«ã¡ã©ãã©ã¡ã¼ã¿
- * ã¨ä¸è´ãã¦ããªããã°ãªãã¾ããã
- * @return ãã¼ã«ã¼ãæ¤åºã§ããããçå½å¤ã§è¿ãã¾ãã
+ * ãã¼ã«ã¼ãæ¤åºããç»åãç»åã®ãµã¤ãºã¯ãã³ã³ã¹ãã©ã¯ã¿ã«æå®ãã{@link NyARParam}ãªãã¸ã§ã¯ãã¨ä¸è´ãã¦ããªããã°ãªãã¾ããã
+ * @return
+ * ãã¼ã«ã¼ãæ¤åºã§ãããããçå½å¤ã§è¿ãã¾ãã
* @throws NyARException
*/
- public boolean detectMarkerLite(INyARRgbRaster i_raster) throws NyARException
+ protected boolean detectMarkerLite(INyARRgbRaster i_raster) throws NyARException
{
//ãµã¤ãºãã§ãã¯
if(!this._bin_raster.getSize().isEqualSize(i_raster.getSize())){
@@ -191,12 +210,12 @@ public class NyARCustomSingleDetectMarker
}
return true;
}
+
/**
- * æ¤åºãããã¼ã«ã¼ã®å¤æè¡åãè¨ç®ãã¦ão_resultã¸å¤ãè¿ãã¾ãã
- * ç´åã«å®è¡ããdetectMarkerLiteãæåãã¦ããªãã¨ä½¿ãã¾ããã
- *
+ * ãã®é¢æ°ã¯ãæ¤åºãããã¼ã«ã¼ã®å¤æè¡åãè¨ç®ãã¦ão_resultã¸å¤ãè¿ãã¾ãã
+ * ç´åã«å®è¡ãã{@link #detectMarkerLite}ãæåãã¦ããªãã¨ä½¿ãã¾ããã
* @param o_result
- * å¤æè¡åãåãåããªãã¸ã§ã¯ããæå®ãã¾ãã
+ * å¤æè¡åãåãåããªãã¸ã§ã¯ãã
* @throws NyARException
*/
public void getTransmationMatrix(NyARTransMatResult o_result) throws NyARException
@@ -210,26 +229,35 @@ public class NyARCustomSingleDetectMarker
return;
}
/**
- * ç¾å¨ã®ç©å½¢ãè¿ãã¾ãã
+ * ãã®é¢æ°ã¯ããã¼ã«ã¼ã®ç»åä¸ã®ä½ç½®ãæ ¼ç´ããã{@link NyARSquare}ã¸ã®åç
§å¤ãè¿ãã¾ãã
+ * ç´åã«å®è¡ãã{@link #detectMarkerLite}ãæåãã¦ããªãã¨ä½¿ãã¾ããã
+ * è¿å´å¤ã®å
容ã¯ã次ã«{@link #detectMarkerLite}ãå®è¡ããã¾ã§æå¹ã§ãã
* @return
+ * ç©å½¢æ
å ±ã¸ã®åç
§å¤ã
*/
public NyARSquare refSquare()
{
return this._square;
}
/**
- * æ¤åºãããã¼ã«ã¼ã®ä¸è´åº¦ãè¿ãã¾ãã
- *
- * @return ãã¼ã«ã¼ã®ä¸è´åº¦ãè¿ãã¾ãã0ï½1ã¾ã§ã®å¤ãã¨ãã¾ãã ä¸è´åº¦ãä½ãå ´åã«ã¯ã誤èªèã®å¯è½æ§ãé«ããªãã¾ãã
- * @throws NyARException
+ * ãã®é¢æ°ã¯ãæ¤åºãããã¼ã«ã¼ã¨ç»é²æ¸ãã¿ã¼ã³ã¨ã®ãä¸è´åº¦ãè¿ãã¾ãã
+ * ç´åã«å®è¡ãã{@link #detectMarkerLite}ãæåãã¦ããªãã¨ä½¿ãã¾ããã
+ * å¤ã¯ã0<=n<1ã®éã®æ°å¤ãåãã¾ãã
+ * ä¸è¬çã«ãä¸è´åº¦ãä½ãå ´åã¯ããã¼ã«ã誤èªèãã¦ãã¾ãã
+ * @return
+ * ä¸è´åº¦ã®æ°å¤ã
*/
public double getConfidence()
{
return this._confidence;
}
/**
- * getTransmationMatrixã®è¨ç®ã¢ã¼ããè¨å®ãã¾ãã åæå¤ã¯TRUEã§ãã
- *
+ * ãã®é¢æ°ã¯ãå¤æè¡åã®è¨ç®ã¢ã¼ããåãæ¿ãã¾ãã
+ * é常ã¯trueã使ç¨ãã¾ãã
+ * transMatäºæã®è¨ç®ã¯ã姿å¢ã®åæå¤ãæ¯åäºæ¬¡å
座æ¨ããè¨ç®ãããããè² è·ãå®å®ãã¾ãã
+ * transMatContäºæã®è¨ç®ã¯ã姿å¢ã®åæå¤ã«ååã®çµæãæµç¨ãã¾ãããã®ã¢ã¼ãã¯ã姿å¢ã®å®å®ãããã¼ã«ã«å¯¾ãã¦ã¯
+ * ã¸ãã¿ã®æ¸å°ãè² è·æ¸å°ãªã©ã®å¹æãããã¾ããã姿å¢ã®å®å®ããªããã¼ã«ãè¤æ°ã®ãã¼ã«ã使ç¨ããç°å¢ã§ã¯ã
+ * å°éã®è² è·å¤åãããã¾ãã
* @param i_is_continue
* TRUEãªããtransMatContäºæã®è¨ç®ããã¾ãã FALSEãªããtransMatäºæã®è¨ç®ããã¾ãã
*/
@@ -238,7 +266,8 @@ public class NyARCustomSingleDetectMarker
this._is_continue = i_is_continue;
}
/**
- * ããã¼ãé¢æ°
+ * ãããã¯é¢æ°ã
+ * privateã¡ã³ãã«ã¢ã¯ã»ã¹ããããã®ãã³ãã«ã§ãã
* @return
*/
public Object[] _getProbe()
@@ -246,8 +275,5 @@ public class NyARCustomSingleDetectMarker
Object[] r=new Object[1];
r[0]=this._inst_patt;
return r;
- }
-
-
-
+ }
}
diff --git a/lib/src/jp/nyatla/nyartoolkit/detector/NyARDetectMarker.java b/lib/src/jp/nyatla/nyartoolkit/detector/NyARDetectMarker.java
index 0743ac0..4c68292 100644
--- a/lib/src/jp/nyatla/nyartoolkit/detector/NyARDetectMarker.java
+++ b/lib/src/jp/nyatla/nyartoolkit/detector/NyARDetectMarker.java
@@ -47,14 +47,24 @@ import jp.nyatla.nyartoolkit.core.types.stack.NyARObjectStack;
-
-
/**
- * è¤æ°ã®ãã¼ã«ã¼ãæ¤åºããããããã«æãä¸è´ããARã³ã¼ãããã³ã³ã¹ãã©ã¯ã¿ã§ç»é²ããARã³ã¼ããã æ¢ãã¯ã©ã¹ã§ããæ大300åãèªèãã¾ãããã´ãã©ãã«ãèªèãããããã®ã§100åç¨åº¦ãéçã§ãã
- *
+ * ãã®ã¯ã©ã¹ã¯ãè¤æ°ã®ãã¼ã«ãåãæ±ããã¼ã«æ¤åºå¨ã§ãã
+ * ç»é²ããnåã®ARãã¼ã«ã«å¯¾å¿ãããã¼ã«ãå
¥åç»åããæ¤åºãããã®å¤æè¡åã¨ä¸è´åº¦ãè¿ãã¾ãã
+ * ãã®é¢æ°ã¯nåã®ç»é²ãããã¼ã«ã«å¯¾ãã¦ãç»åä¸ã®måã®ãã¼ã«ãããæãä½ç½®ãããã®ãå²ãå½ã¦ãåä½ããã¾ãã
+ * ãã®ãããåä¸ãªç¨®é¡ï¼ãã¿ã¼ã³ï¼ã®ãã¼ã«ãè¤æ°åå¨ããæ åããæ£ããå¦çã§ãã¾ãããã¾ããåä¸ãªãã¼ã«ãã¿ã¼ã³ã
+ * è¤æ°ç»é²ãããã¨ãã§ãã¾ããã
+ * ç°¡åãªä½¿ãæ¹
+ *
+ * - ã¤ã³ã¹ã¿ã³ã¹ãä½æãã¾ãããã©ã¡ã¼ã¿ã«ã¯ãè¨ç®ã¢ã«ã´ãªãºã ã¨å
¥åç»åå½¢å¼ãã«ã¡ã©ãã©ã¡ã¼ã¿ãæ¤åºãããã¼ã«ãã¿ã¼ã³ãã¼ãã«ãããã¾ãã
+ *
- {@link #detectMarkerLite}é¢æ°ã«ç»åã¨æ·å±
å¤ãå
¥åãã¦ããã¼ã«ãæ¤åºãã¾ãã
+ *
- æ¤åºæ°ãå¾ãããã®ã§ãã¤ã³ãã¯ã¹çªå·ãå
ã«ã{@link #getConfidence}çã®é¢æ°ã使ã£ã¦ãåå¾ãããã¼ã«ã®ç¶æ
ãå¾ã¾ãã
+ *
- 以éã¯ããã®å¦çãç¹°ãè¿ãã¦ãã¼ã«ã®ãã©ã¡ã¼ã¿ãæ´æ°ãã¾ãã
+ *
+ *
*/
public class NyARDetectMarker
{
+ /** ç©å½¢æ¤åºå¨ã®ããªãã¸*/
private class RleDetector extends NyARSquareContourDetector_Rle
{
//å
¬éããããã£
@@ -152,29 +162,29 @@ public class NyARDetectMarker
this.result_stack.clear();
}
- }
+ }
+ /** å¤æè¡åè¨ç®å¨ã®ã¤ã³ã¹ã¿ã³ã¹*/
+ private INyARTransMat _transmat;
private static final int AR_SQUARE_MAX = 300;
private boolean _is_continue = false;
private RleDetector _square_detect;
- protected INyARTransMat _transmat;
private NyARRectOffset[] _offset;
-
/**
- * è¤æ°ã®ãã¼ã«ã¼ãæ¤åºããæãä¸è´ããARCodeãi_codeããæ¤ç´¢ãããªãã¸ã§ã¯ããä½ãã¾ãã
- *
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * ãã¿ã¼ã³ã®éè¤ããªãè¤æ°ã®ãã¼ã«ãæ¤åºããæ¤åºå¨ãä½æãã¾ãã
* @param i_param
- * ã«ã¡ã©ãã©ã¡ã¼ã¿ãæå®ãã¾ãã
+ * ã«ã¡ã©ãã©ã¡ã¼ã¿ãæå®ãã¾ãããã®ãµã¤ãºã¯ã{@link #detectMarkerLite}ã«å
¥åããç»åã¨åãã§ããå¿
è¦ãããã¾ãã
* @param i_code
- * æ¤åºãããã¼ã«ã¼ã®ARCodeé
åãæå®ãã¾ãã
- * é
åè¦ç´ ã®ã¤ã³ããã¯ã¹çªå·ãããã®ã¾ã¾getARCodeIndexé¢æ°ã§å¾ãããARCodeã¤ã³ããã¯ã¹ã«ãªãã¾ãã
- * ä¾ãã°ãè¦ç´ [1]ã®ARCodeã«ä¸è´ãããã¼ã«ã¼ã§ããå ´åã¯ãgetARCodeIndexã¯1ãè¿ãã¾ãã
+ * æ¤åºãããã¼ã«ã¼ãã¿ã¼ã³ãæ ¼ç´ããã{@link NyARCode}ã®é
åãæå®ãã¾ããé
åã«ã¯ãå
é ããã0ããå§ã¾ãã¤ã³ãã¯ã¹çªå·ãå²ãå½ã¦ããã¾ãã
+ * ãã®ã¤ã³ãã¯ã¹çªå·ã¯ã{@link #getConfidence(int)}çã®ã¤ã³ãã¯ã¹çªå·ã«ä½¿ãã¾ãã
* @param i_marker_width
- * i_codeã®ãã¼ã«ã¼ãµã¤ãºãããªã¡ã¼ãã«ã§æå®ããé
åãæå®ãã¾ãã å
é ããi_number_of_codeåã®è¦ç´ ã«ã¯ãæå¹ãªå¤ãæå®ããå¿
è¦ãããã¾ãã
+ * æ£æ¹å½¢ãã¼ã«ã®ç©çãµã¤ãºãmmåä½ã§æå®ãã¾ãã
* @param i_number_of_code
- * i_codeã«å«ã¾ãããARCodeã®æ°ãæå®ãã¾ãã
+ * i_codeã®æå¹ãªåæ°ãæå®ãã¾ãã
* @param i_input_raster_type
- * å
¥åã©ã¹ã¿ã®ãã¯ã»ã«ã¿ã¤ããæå®ãã¾ãããã®å¤ã¯ãINyARBufferReaderã¤ã³ã¿ãã§ã¤ã¹ã®getBufferTypeã®æ»ãå¤ãæå®ãã¾ãã
+ * {@link #detectMarkerLite}ã«å
¥åããã©ã¹ã¿ã®ãããã¡ãã©ã¼ããããæå®ãã¾ãã
+ * ãã®å¤ã¯ã{@link INyARRgbRaster#getBufferType}é¢æ°ã®æ»ãå¤ãå©ç¨ãã¾ãã
* @throws NyARException
*/
public NyARDetectMarker(NyARParam i_param,NyARCode[] i_code,double[] i_marker_width, int i_number_of_code,int i_input_raster_type) throws NyARException
@@ -182,6 +192,22 @@ public class NyARDetectMarker
initInstance(i_param,i_code,i_marker_width,i_number_of_code,i_input_raster_type);
return;
}
+ /**
+ * ãã®é¢æ°ã¯ãã¤ã³ã¹ã¿ã³ã¹ãåæåãã¾ãã
+ * ã³ã³ã¹ãã©ã¯ã¿ããå¼ã³åºãã¾ãã
+ * @see NyARDetectMarker#NyARDetectMarker(NyARParam, NyARCode[], double[], int, int)
+ * @param i_ref_param
+ * Check see also
+ * @param i_ref_code
+ * Check see also
+ * @param i_marker_width
+ * Check see also
+ * @param i_number_of_code
+ * Check see also
+ * @param i_input_raster_type
+ * Check see also
+ * @throws NyARException
+ */
protected void initInstance(
NyARParam i_ref_param,
NyARCode[] i_ref_code,
@@ -216,7 +242,7 @@ public class NyARDetectMarker
/**
* i_imageã«ãã¼ã«ã¼æ¤åºå¦çãå®è¡ããçµæãè¨é²ãã¾ãã
- *
+ * ããããã
* @param i_raster
* ãã¼ã«ã¼ãæ¤åºããã¤ã¡ã¼ã¸ãæå®ãã¾ãã
* @param i_thresh
@@ -300,6 +326,7 @@ public class NyARDetectMarker
}
}
+/** å
é¨ã¯ã©ã¹ã§ããã¦ã¼ã¶ã使ç¨ãããã¨ã¯ããã¾ãã*/
class NyARDetectMarkerResult
{
public int arcode_id;
@@ -309,6 +336,7 @@ class NyARDetectMarkerResult
}
+/** å
é¨ã¯ã©ã¹ã§ããã¦ã¼ã¶ã使ç¨ãããã¨ã¯ããã¾ãã*/
class NyARDetectMarkerResultStack extends NyARObjectStack
{
public NyARDetectMarkerResultStack(int i_length) throws NyARException
diff --git a/lib/src/jp/nyatla/nyartoolkit/detector/NyARSingleDetectMarker.java b/lib/src/jp/nyatla/nyartoolkit/detector/NyARSingleDetectMarker.java
index 64862a5..04795f4 100644
--- a/lib/src/jp/nyatla/nyartoolkit/detector/NyARSingleDetectMarker.java
+++ b/lib/src/jp/nyatla/nyartoolkit/detector/NyARSingleDetectMarker.java
@@ -41,22 +41,34 @@ import jp.nyatla.nyartoolkit.core.squaredetect.*;
import jp.nyatla.nyartoolkit.core.pickup.*;
import jp.nyatla.nyartoolkit.core.types.*;
import jp.nyatla.nyartoolkit.core.transmat.*;
+
/**
- * ç»åããARCodeã«æãä¸è´ãããã¼ã«ã¼ã1åæ¤åºãããã®å¤æè¡åãè¨ç®ããã¯ã©ã¹ã§ãã
- *
+ * ãã®ã¯ã©ã¹ã¯ã1åã®ãã¼ã«ãåãæ±ããã¼ã«æ¤åºå¨ã§ãã
+ * ç»é²ããï¼åã®ARãã¼ã«ã«å¯¾å¿ãããã¼ã«ãå
¥åç»åããæ¤åºãããã®å¤æè¡åã¨ä¸è´åº¦ãè¿ãã¾ãã
+ * ç°¡åãªä½¿ãæ¹
+ *
+ * - ã¤ã³ã¹ã¿ã³ã¹ãä½æãã¾ãããã©ã¡ã¼ã¿ã«ã¯ãè¨ç®ã¢ã«ã´ãªãºã ã¨å
¥åç»åå½¢å¼ãã«ã¡ã©ãã©ã¡ã¼ã¿ãæ¤åºãããã¼ã«ãããã¾ãã
+ *
- {@link #detectMarkerLite}é¢æ°ã«ç»åã¨æ·å±
å¤ãå
¥åãã¦ããã¼ã«ãæ¤åºãã¾ãã
+ *
- ãã¼ã«ãè¦ã¤ããã¨ãã¤ã³ã¹ã¿ã³ã¹ã®ããããã£ãæ´æ°ããã¾ãã{@link #getConfidence}çã®é¢æ°ã使ã£ã¦ãåå¾ãããã¼ã«ã®ç¶æ
ãå¾ã¾ãã
+ *
- 以éã¯ããã®å¦çãç¹°ãè¿ãã¦ãã¼ã«ã®ãã©ã¡ã¼ã¿ãæ´æ°ãã¾ãã
+ *
+ *
*/
public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
{
+ /** ARToolKitäºæã®ã¢ã«ã´ãªãºã ãé¸æãã¾ãã*/
public final static int PF_ARTOOLKIT_COMPATIBLE=1;
+ /** NyARToolKitã®ã¢ã«ã´ãªãºã ãé¸æãã¾ãã*/
public final static int PF_NYARTOOLKIT=2;
+ /** ARToolKitäºæã¢ã«ã´ãªãºã ã¨ãNyARToolKitã®ã¢ã«ã´ãªãºã ã®æ··åã§ãã2Dç³»ã«NyARToolkit,3Dç³»ã«ARToolKitã®ã¢ã«ã´ãªãºã ãé¸æãã¾ãã*/
public final static int PF_NYARTOOLKIT_ARTOOLKIT_FITTING=100;
+ /** éçºç¨å®æ°å¤*/
public final static int PF_TEST2=201;
/**
- * Rleã©ç©å½¢Detectorã®ããªãã¸
- *
+ * RleLabelingã使ã£ãç©å½¢æ¤åºæ©
*/
- class RleDetector extends NyARSquareContourDetector_Rle
+ private class RleDetector extends NyARSquareContourDetector_Rle
{
NyARCustomSingleDetectMarker _parent;
public RleDetector(NyARCustomSingleDetectMarker i_parent,NyARIntSize i_size) throws NyARException
@@ -70,8 +82,7 @@ public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
}
}
/**
- * ARTKç©å½¢Detectorã®ããªãã¸
- *
+ * ARTKã©ã¹ãªã³ã°ã使ã£ãç©å½¢æ¤åºæ©ã¸ã®ããªãã¸
*/
class ARTKDetector extends NyARSquareContourDetector_ARToolKit
{
@@ -87,25 +98,25 @@ public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
}
}
-
-
-
-
-
-
-
-
/**
- * æ¤åºããARCodeã¨ã«ã¡ã©ãã©ã¡ã¼ã¿ããã1åã®ARCodeãæ¤åºããNyARSingleDetectMarkerã¤ã³ã¹ã¿ã³ã¹ãä½ãã¾ãã
- *
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * æå®ãã1種ã®ãã¼ã«ã1åæ¤åºããã¤ã³ã¹ã¿ã³ã¹ãä½ãã¾ãã
* @param i_param
- * ã«ã¡ã©ãã©ã¡ã¼ã¿ãæå®ãã¾ãã
+ * ã«ã¡ã©ãã©ã¡ã¼ã¿ãæå®ãã¾ãããã®ãµã¤ãºã¯ã{@link #detectMarker}ã«å
¥åããç»åã¨åãã§ããå¿
è¦ãããã¾ãã
* @param i_code
- * æ¤åºããARCodeãæå®ãã¾ãã
+ * æ¤åºãããã¼ã«ãã¿ã¼ã³ãæå®ãã¾ãã
* @param i_marker_width
- * ARã³ã¼ãã®ç©çãµã¤ãºããããªã¡ã¼ãã«ã§æå®ãã¾ãã
+ * æ£æ¹å½¢ãã¼ã«ã®ç©çãµã¤ãºãmmåä½ã§æå®ãã¾ãã
* @param i_input_raster_type
- * å
¥åã©ã¹ã¿ã®ãã¯ã»ã«ã¿ã¤ããæå®ãã¾ãããã®å¤ã¯ãINyARBufferReaderã¤ã³ã¿ãã§ã¤ã¹ã®getBufferTypeã®æ»ãå¤ãæå®ãã¾ãã
+ * {@link #detectMarker}ã«å
¥åããã©ã¹ã¿ã®ãããã¡ãã©ã¼ããããæå®ãã¾ãã
+ * ãã®å¤ã¯ã{@link INyARRgbRaster#getBufferType}é¢æ°ã®æ»ãå¤ãå©ç¨ãã¾ãã
+ * @param i_profile_id
+ * è¨ç®ã¢ã«ã´ãªãºã ã®é¸æå¤ã§ãã以ä¸ã®å®æ°ã®ãããããæå®ãã¾ãã
+ *
+ * - {@link NyARSingleDetectMarker#PF_ARTOOLKIT_COMPATIBLE}
+ *
- {@link NyARSingleDetectMarker#PF_NYARTOOLKIT}
+ *
- {@link NyARSingleDetectMarker#PF_NYARTOOLKIT_ARTOOLKIT_FITTING}
+ *
* @throws NyARException
*/
public NyARSingleDetectMarker(NyARParam i_param, NyARCode i_code, double i_marker_width,int i_input_raster_type,int i_profile_id) throws NyARException
@@ -114,6 +125,21 @@ public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
initialize(i_param,i_code,i_marker_width,i_input_raster_type,i_profile_id);
return;
}
+ /**
+ * ã³ã³ã¹ãã©ã¯ã¿ã§ãã
+ * æå®ãã1種ã®ãã¼ã«ã1åæ¤åºããã¤ã³ã¹ã¿ã³ã¹ãä½ãã¾ãã
+ * i_profile_idã«{@link NyARSingleDetectMarker#PF_NYARTOOLKIT}ãé¸æãã{@link NyARSingleDetectMarker#NyARSingleDetectMarker(NyARParam, NyARCode, double, int, int)ã¨åãã§ãã
+ * @see NyARSingleDetectMarker#NyARSingleDetectMarker(NyARParam, NyARCode, double, int, int)
+ * @param i_param
+ * Check see also
+ * @param i_code
+ * Check see also
+ * @param i_marker_width
+ * Check see also
+ * @param i_input_raster_type
+ * Check see also
+ * @throws NyARException
+ */
public NyARSingleDetectMarker(NyARParam i_param, NyARCode i_code, double i_marker_width,int i_input_raster_type) throws NyARException
{
super();
@@ -121,12 +147,19 @@ public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
return;
}
/**
- * ã³ã³ã¹ãã©ã¯ã¿ããå¼ã³åºãé¢æ°ã§ãã
+ * ãã®é¢æ°ã¯ãã¤ã³ã¹ã¿ã³ã¹ãåæåãã¾ãã
+ * å¼æ°ã¯ã{@link NyARSingleDetectMarker#NyARSingleDetectMarker}ã®å¯¾å¿ããå¼æ°ã¨åãã§ãã
+ * @see NyARSingleDetectMarker#NyARSingleDetectMarker(NyARParam, NyARCode, double, int, int)
* @param i_ref_param
+ * Check see also
* @param i_ref_code
+ * Check see also
* @param i_marker_width
+ * Check see also
* @param i_input_raster_type
+ * Check see also
* @param i_profile_id
+ * Check see also
* @throws NyARException
*/
private void initialize(
@@ -164,14 +197,16 @@ public class NyARSingleDetectMarker extends NyARCustomSingleDetectMarker
super.initInstance(patt_inst,sqdetect_inst,transmat_inst,th,i_ref_param,i_ref_code,i_marker_width);
}
-
/**
- * i_imageã«ãã¼ã«ã¼æ¤åºå¦çãå®è¡ããçµæãè¨é²ãã¾ãã
- *
+ * ãã®é¢æ°ã¯ãç»åãããã¼ã«ãæ¤åºãã¾ãã
+ * é¢æ°ã¯ãç»åã®äºå¤åãã©ã¹ãªã³ã°ãç©å½¢æ¤åºããã¿ã¼ã³ã®ä¸è´å¤å®å¦çã¾ã§ãè¡ããç»åä¸ã«ããæãä¸è´ãããã¿ã¼ã³ãæã¤ç©å½¢ã®åº§æ¨ããthisã®
+ * ããããã£ã¸ä¿ç®¡ãã¾ãã
* @param i_raster
- * ãã¼ã«ã¼ãæ¤åºããã¤ã¡ã¼ã¸ãæå®ãã¾ããã¤ã¡ã¼ã¸ãµã¤ãºã¯ãã³ã³ã¹ãã©ã¯ã¿ã§æå®i_paramã®
- * ã¹ã¯ãªã¼ã³ãµã¤ãºã¨ä¸è´ãããã¤i_input_raster_typeã«æå®ããå½¢å¼ã§ãªããã°ããã¾ããã
- * @return ãã¼ã«ã¼ãæ¤åºã§ããããçå½å¤ã§è¿ãã¾ãã
+ * æ¤åºå
ã®ç»åãæå®ãã¾ãããã®ç»åã¯ãã³ã³ã¹ãã©ã¯ã¿ã§æå®ãããã®ã¨åããµã¤ãºãç»ç´ ãã©ã¼ãããã«éããã¾ãã
+ * @param i_threshold
+ * äºå¤åã®æ·å±
å¤ãæå®ãã¾ãã0<=n<256ã®éã§æå®ãã¾ãã
+ * @return
+ * ãã¼ã«ã®æ¤åºã«æåããã¨ãtrueãè¿ãã¾ãã
* @throws NyARException
*/
public boolean detectMarkerLite(INyARRgbRaster i_raster,int i_threshold) throws NyARException
--
2.11.0