Esempio n. 1
0
        public Coord2Linear(NyARIntSize i_size, NyARCameraDistortionFactor i_distfactor_ref)
        {
            //歪み計算テーブルを作ると、8*width/height*2の領域を消費します。
            //領域を取りたくない場合は、i_dist_factor_refの値をそのまま使ってください。
            this._dist_factor = new NyARObserv2IdealMap(i_distfactor_ref, i_size);


            // 輪郭バッファ
            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;
        }
	    public Coord2Linear(NyARIntSize i_size,NyARCameraDistortionFactor i_distfactor_ref)
	    {
		    //歪み計算テーブルを作ると、8*width/height*2の領域を消費します。
		    //領域を取りたくない場合は、i_dist_factor_refの値をそのまま使ってください。
		    this._dist_factor = new NyARObserv2IdealMap(i_distfactor_ref,i_size);


		    // 輪郭バッファ
		    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;
	    }
Esempio n. 3
0
 /**
  * コンストラクタです。
  * 輪郭取得元画像の歪み矯正オブジェクトとサイズを指定して、インスタンスを生成します。
  * @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;
 }