+/* \r
+ * PROJECT: NyARToolkit(Extension)\r
+ * --------------------------------------------------------------------------------\r
+ * The NyARToolkit is Java edition ARToolKit class library.\r
+ * Copyright (C)2008-2009 Ryo Iizuka\r
+ *\r
+ * This program is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (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 program. If not, see <http://www.gnu.org/licenses/>.\r
+ * \r
+ * For further information please contact.\r
+ * http://nyatla.jp/nyatoolkit/\r
+ * <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
+ * \r
+ */\r
package jp.nyatla.nyartoolkit.core.analyzer.histogram;\r
\r
import jp.nyatla.nyartoolkit.core.types.NyARHistogram;\r
\r
\r
-\r
/**\r
- * PTileを使った敷居値決定クラスです。\r
- * 明点と暗点を双方向からPTile法で敷居値を計算し、その中央値を閾値とします。\r
- * \r
- * \r
+ * このクラスは、明点・暗点のPTail法で求めた敷居値を合算して、敷居値を計算します。\r
+ * <p>敷居値決定のアルゴリズム - 明点・暗点両側からPTail法を用いて一定割合の画素を取り除き、その中間値を求めます。</p>\r
*/\r
public class NyARHistogramAnalyzer_SlidePTile implements INyARHistogramAnalyzer_Threshold\r
{\r
/**\r
* コンストラクタです。\r
* @param i_persentage\r
- * æ\95·å±\85å\80¤ã\81¨ã\81\99ã\82\8bã\80\81PTileã\81®ã\83\91ã\83¼ã\82»ã\83³ã\83\86ã\83¼ã\82¸å\80¤ã\82\92指定します。\r
+ * æ\98\8eç\82¹ã\80\81æ\9a\97ç\82¹ã\81®ä¸¡å\81´ã\81\8bã\82\89å\8f\96ã\82\8aé\99¤ã\81\8fã\80\81ç\94»ç´ ã\81®å\89²å\90\88ã\82\92æ\8c\87å®\9aã\81\97ã\81¾ã\81\99ã\80\820<n<50ã\81®ç¯\84å\9b²ã\81§指定します。\r
*/\r
public NyARHistogramAnalyzer_SlidePTile(int i_persentage)\r
{\r
assert (0 <= i_persentage && i_persentage <= 50);\r
//初期化\r
this._persentage=i_persentage;\r
- } \r
+ }\r
+ /**\r
+ * この関数は、SlidePTileを用いて敷居値を1個求めます。敷居値の範囲は、i_histogram引数の範囲と同じです。\r
+ */ \r
public int getThreshold(NyARHistogram i_histogram)\r
{\r
//総ピクセル数を計算\r