/** * コンストラクタです。 * 輪郭取得元画像の歪み矯正オブジェクトとサイズを指定して、インスタンスを生成します。 * @param i_size * 入力画像のサイズ * @param i_distfactor * 樽型歪みを補正する場合に、オブジェクトを指定します。 * nullの場合、補正を行いません。 */ public NyARCoord2Linear(NyARIntSize i_size, INyARCameraDistortionFactor i_distfactor) { if (i_distfactor != null) { this._dist_factor = new NyARObserv2IdealMap(i_distfactor, i_size); } else { this._dist_factor = null; } // 輪郭バッファ this._pca = new NyARPca2d_MatrixPCA_O2(); this._xpos = new double[i_size.w + i_size.h]; //最大辺長はthis._width+this._height this._ypos = new double[i_size.w + i_size.h]; //最大辺長はthis._width+this._height return; }
/** * コンストラクタです。 * 輪郭取得元画像の歪み矯正オブジェクトとサイズを指定して、インスタンスを生成します。 * @param i_size * 入力画像のサイズ * @param i_distfactor * 樽型歪みを補正する場合に、オブジェクトを指定します。 * nullの場合、補正を行いません。 */ public NyARCoord2Linear(NyARIntSize i_size, INyARCameraDistortionFactor i_distfactor) { if (i_distfactor != null) { this._dist_factor = new NyARObserv2IdealMap(i_distfactor, i_size); } else { this._dist_factor = null; } // 輪郭バッファ this._pca = new NyARPca2d_MatrixPCA_O2(); this._xpos = new double[i_size.w + i_size.h];//最大辺長はthis._width+this._height this._ypos = new double[i_size.w + i_size.h];//最大辺長はthis._width+this._height return; }