/**
  * The constructor.
  * @param i_param
  * ARToolkit parameter object that finished setup.
  * @param i_al_mode
  * fitting algorism type.
  * @throws NyARException
  */
 public NyARIcpTransMat(NyARParam i_param, int i_al_mode)
 {
     this._icpc = new NyARIcpPlane(i_param);
     switch (i_al_mode)
     {
         case AL_POINT:
             this._icpp = new NyARIcpPoint(i_param);
             break;
         case AL_POINT_ROBUST:
             this._icpp = new NyARIcpPointRobust(i_param);
             break;
         default:
             throw new System.ArgumentException();
     }
     return;
 }
Beispiel #2
0
        /**
         * The constructor.
         * @param i_param
         * ARToolkit parameter object that finished setup.
         * @param i_al_mode
         * fitting algorism type.
         * @throws NyARException
         */
        public NyARIcpTransMat(NyARParam i_param, int i_al_mode)
        {
            this._icpc = new NyARIcpPlane(i_param);
            switch (i_al_mode)
            {
            case AL_POINT:
                this._icpp = new NyARIcpPoint(i_param);
                break;

            case AL_POINT_ROBUST:
                this._icpp = new NyARIcpPointRobust(i_param);
                break;

            default:
                throw new System.ArgumentException();
            }
            return;
        }