public OnSquareDetect(INyARMarkerSystemConfig i_config, ARMarkerList i_armk_list, NyIdList i_idmk_list, TrackingList i_tracking_list, SquareStack i_ref_sq_stack)
 {
     this._coordline         = new NyARCoord2Linear(i_config.getNyARParam().getScreenSize(), i_config.getNyARParam().getDistortionFactor());
     this._ref_armk_list     = i_armk_list;
     this._ref_idmk_list     = i_idmk_list;
     this._ref_tracking_list = i_tracking_list;
     //同時に判定待ちにできる矩形の数
     this._ref_sq_stack = i_ref_sq_stack;
 }
Exemplo n.º 2
0
        /**
         * コンストラクタです。{@link INyARMarkerSystemConfig}を元に、インスタンスを生成します。
         * @param i_config
         * 初期化済の{@link MarkerSystem}を指定します。
         * @throws NyARException
         */
        public NyARMarkerSystem(INyARMarkerSystemConfig i_config)
            : base(i_config.getNyARParam())
        {
            this.initInstance(i_config);

            this._armk_list     = new ARMarkerList();
            this._idmk_list     = new NyIdList();
            this._psmk_list     = new ARPlayCardList();
            this._tracking_list = new TrackingList();
            this._transmat      = i_config.createTransmatAlgorism();
            //同時に判定待ちにできる矩形の数
            this._on_sq_handler = new OnSquareDetect(i_config, this._armk_list, this._idmk_list, this._psmk_list, this._tracking_list, INITIAL_MARKER_STACK_SIZE);
        }
	/**
	 * コンストラクタです。{@link INyARMarkerSystemConfig}を元に、インスタンスを生成します。
	 * @param i_config
	 * 初期化済の{@link MarkerSystem}を指定します。
	 * @throws NyARException
	 */
    public NyARMarkerSystem(INyARMarkerSystemConfig i_config)
        : base(i_config.getNyARParam())
	{
		this.initInstance(i_config);
		
		this._armk_list=new ARMarkerList();
		this._idmk_list=new NyIdList();
        this._psmk_list = new ARPlayCardList();
		this._tracking_list=new TrackingList();
		this._transmat=i_config.createTransmatAlgorism();
		//同時に判定待ちにできる矩形の数
        this._on_sq_handler = new OnSquareDetect(i_config, this._armk_list, this._idmk_list, this._psmk_list, this._tracking_list, INITIAL_MARKER_STACK_SIZE);
    }
Exemplo n.º 4
0
        public NyARMarkerSystem(INyARMarkerSystemConfig i_config)
            : base(i_config.getNyARSingleCameraView())
        {
            this._sqdetect = new SquareDetect(i_config);
            this._hist_th  = i_config.createAutoThresholdArgorism();

            this._armk_list     = new ARMarkerList();
            this._idmk_list     = new NyIdList();
            this._psmk_list     = new ARPlayCardList();
            this._tracking_list = new TrackingList();
            this._transmat      = i_config.createTransmatAlgorism();
            this._on_sq_handler = new OnSquareDetect(this._view.getARParam(), this._armk_list, this._idmk_list, this._psmk_list, this._tracking_list, INITIAL_MARKER_STACK_SIZE);
        }
        /**
         * コンストラクタです。{@link INyARMarkerSystemConfig}を元に、インスタンスを生成します。
         * @param i_config
         * 初期化済の{@link MarkerSystem}を指定します。
         * @throws NyARException
         */
        public NyARMarkerSystem(INyARMarkerSystemConfig i_config)
        {
            this._ref_param = i_config.getNyARParam();
            this._frustum   = new NyARFrustum();
            this.initInstance(i_config);
            this.setProjectionMatrixClipping(FRUSTUM_DEFAULT_NEAR_CLIP, FRUSTUM_DEFAULT_FAR_CLIP);

            this._armk_list     = new ARMarkerList();
            this._idmk_list     = new NyIdList();
            this._tracking_list = new TrackingList();
            this._transmat      = i_config.createTransmatAlgorism();
            //同時に判定待ちにできる矩形の数
            this._sq_stack      = new SquareStack(INITIAL_MARKER_STACK_SIZE);
            this._on_sq_handler = new OnSquareDetect(i_config, this._armk_list, this._idmk_list, this._tracking_list, this._sq_stack);
        }
 protected override void initInstance(INyARMarkerSystemConfig i_config)
 {
     base.initInstance(i_config);
     this._projection_mat = new Matrix4x4();
 }
 public NyARUnityMarkerSystem(INyARMarkerSystemConfig i_config) : base(i_config)
 {
 }
Exemplo n.º 8
0
 protected override void initInstance(INyARMarkerSystemConfig i_config)
 {
     base.initInstance(i_config);
 }
Exemplo n.º 9
0
 public NyARD3dMarkerSystem(INyARMarkerSystemConfig i_config)
     : base(i_config)
 {
 }
Exemplo n.º 10
0
 public NyARD3dMarkerSystem(INyARMarkerSystemConfig i_config)
     : base(i_config)
 {
 }
Exemplo n.º 11
0
 public SquareDetect(INyARMarkerSystemConfig i_config)
 {
     this._sd = new NyARSquareContourDetector_Rle(i_config.getScreenSize());
 }
 protected override void initInstance(INyARMarkerSystemConfig i_config)
 {
     base.initInstance(i_config);
 }
	protected virtual void initInstance(INyARMarkerSystemConfig i_ref_config)
	{
		this._sqdetect=new SquareDetect(i_ref_config);
		this._hist_th=i_ref_config.createAutoThresholdArgorism();
	}
	public SquareDetect(INyARMarkerSystemConfig i_config)
	{
		this._sd=new NyARSquareContourDetector_Rle(i_config.getScreenSize());
	}
    public OnSquareDetect(
        INyARMarkerSystemConfig i_config,
        ARMarkerList i_armk_list, NyIdList i_idmk_list, ARPlayCardList i_psmk_list,
		TrackingList i_tracking_list,int i_initial_stack_size)
    {
		this._coordline=new NyARCoord2Linear(i_config.getNyARParam().getScreenSize(),i_config.getNyARParam().getDistortionFactor());
		this._ref_armk_list=i_armk_list;
		this._ref_idmk_list=i_idmk_list;
		this._ref_psmk_list=i_psmk_list;
		this._ref_tracking_list=i_tracking_list;
		//同時に判定待ちにできる矩形の数
        this._sq_stack = new SquareStack(i_initial_stack_size);
    }
 protected virtual void initInstance(INyARMarkerSystemConfig i_ref_config)
 {
     this._sqdetect = new SquareDetect(i_ref_config);
     this._hist_th  = i_ref_config.createAutoThresholdArgorism();
 }
 public NyARUnityMarkerSystem(INyARMarkerSystemConfig i_config)
     : base(i_config)
 {
 }
 protected override void initInstance(INyARMarkerSystemConfig i_config)
 {
     base.initInstance(i_config);
     this._projection_mat=new Matrix4x4();
 }
        /**
         * コンストラクタです。{@link INyARMarkerSystemConfig}を元に、インスタンスを生成します。
         * @param i_config
         * 初期化済の{@link MarkerSystem}を指定します。
         * @throws NyARException
         */
        public NyARMarkerSystem(INyARMarkerSystemConfig i_config)
        {
            this._ref_param=i_config.getNyARParam();
            this._frustum=new NyARFrustum();
            this.initInstance(i_config);
            this.setProjectionMatrixClipping(FRUSTUM_DEFAULT_NEAR_CLIP, FRUSTUM_DEFAULT_FAR_CLIP);

            this._armk_list=new ARMarkerList();
            this._idmk_list=new NyIdList();
            this._tracking_list=new TrackingList();
            this._transmat=i_config.createTransmatAlgorism();
            //同時に判定待ちにできる矩形の数
            this._sq_stack=new SquareStack(INITIAL_MARKER_STACK_SIZE);
            this._on_sq_handler=new OnSquareDetect(i_config,this._armk_list,this._idmk_list,this._tracking_list,this._sq_stack);
        }