Exemplo n.º 1
0
        public NyARLabeling_Rle(int i_width, int i_height)
        {
            this._rlestack = new RleInfoStack(i_width * i_height * 2048 / (320 * 240) + 32);
            this._rle1     = RleElement.createArray(i_width / 2 + 1);
            this._rle2     = RleElement.createArray(i_width / 2 + 1);
            setAreaRange(AR_AREA_MAX, AR_AREA_MIN);

            return;
        }
Exemplo n.º 2
0
 public NyARLabeling_Rle(int i_width, int i_height)
 {
     this._raster_size.setValue(i_width, i_height);
     this._rlestack = new RleInfoStack(i_width * i_height * 2048 / (320 * 240) + 32);
     this._rle1     = RleElement.createArray(i_width / 2 + 1);
     this._rle2     = RleElement.createArray(i_width / 2 + 1);
     this._max_area = AR_AREA_MAX;
     this._min_area = AR_AREA_MIN;
     return;
 }
Exemplo n.º 3
0
        protected void initInstance(int i_width, int i_height)
        {
            this._raster_size.setValue(i_width, i_height);
            //120KB/QVGA +4K
            long t = (long)i_width * i_height * 3000 / (320 * 240) + 100;//full HD support

            this._rlestack = new RleInfoStack((int)t);
            this._rle1     = RleElement.createArray(i_width / 2 + 1);
            this._rle2     = RleElement.createArray(i_width / 2 + 1);
            this._max_area = AR_AREA_MAX;
            this._min_area = AR_AREA_MIN;
            return;
        }