/**
  * デバック用関数
  * @param args
  * main関数引数
  */
 public static void main(string[] args)
 {
     NyARHistogram data = new NyARHistogram(256);
     for (int i = 0; i < 256; i++)
     {
         data.data[i] = 128 - i > 0 ? 128 - i : i - 128;
     }
     data.total_of_data = data.getTotal(0, 255);
     NyARHistogramAnalyzer_KittlerThreshold an = new NyARHistogramAnalyzer_KittlerThreshold();
     int th = an.getThreshold(data);
     //System.out.print(th);
     return;
 }
        /**
         * デバック用関数
         * @param args
         * main関数引数
         */
        public static void main(string[] args)
        {
            NyARHistogram data = new NyARHistogram(256);

            for (int i = 0; i < 256; i++)
            {
                data.data[i] = 128 - i > 0 ? 128 - i : i - 128;
            }
            data.total_of_data = data.getTotal(0, 255);
            NyARHistogramAnalyzer_KittlerThreshold an = new NyARHistogramAnalyzer_KittlerThreshold();
            int th = an.getThreshold(data);

            //System.out.print(th);
            return;
        }