public NyARSingleDetectMarker_X2(NyARParam i_param, NyARCode i_code, double i_marker_width) throws NyARException\r
{\r
final NyARIntSize scr_size=i_param.getScreenSize(); \r
+ final NyARFixedFloatCameraDistortionFactorMap dist_factor_map=new NyARFixedFloatCameraDistortionFactorMap(i_param.getDistortionFactor(),scr_size);\r
// 解析オブジェクトを作る\r
- this._square_detect = new NyARSquareDetector_X2(i_param.getDistortionFactor(),scr_size);\r
- this._transmat = new NyARTransMat_X2(i_param);\r
+// this._square_detect = new NyARSquareDetector_X2(dist_factor_map,scr_size);\r
+// this._transmat = new NyARTransMat_X2(i_param,dist_factor_map);\r
+ this._square_detect = new NyARSquareDetector(i_param.getDistortionFactor(),scr_size);\r
+ this._transmat = new NyARTransMat_X2(i_param,dist_factor_map);\r
// 比較コードを保存\r
this._code = i_code;\r
this._marker_width = i_marker_width;\r
private NyARBinRaster _bin_raster;\r
private NyARRasterFilter_ARToolkitThreshold _tobin_filter=new NyARRasterFilter_ARToolkitThreshold(100);\r
\r
+ \r
/**\r
* i_imageにマーカー検出処理を実行し、結果を記録します。\r
* \r
throw new NyARException();\r
}\r
\r
- //ラスタを2値イメージに変換する.\r
+ //ラスタを(1/4の画像の)2値イメージに変換する.\r
this._tobin_filter.setThreshold(i_threshold);\r
this._tobin_filter.doFilter(i_raster,this._bin_raster);\r
\r