example1.py
- See also:
- example1.c
import os
import sys
import time
from fulguro import *
imin = flgr2d_load_pgm('../../images/gray/lena.pgm')
imout = FLGR_Data2D(imin.size_y,imin.size_x,1,FLGR_UINT8)
imtmp = FLGR_Data2D(imin.size_y,imin.size_x,1,FLGR_UINT8)
scr0 = flgr2d_rtview_create(imin, 1, 2)
flgr2d_rtview_refresh(scr0, imin, 0, 0)
flgr2d_copy(imout,imin)
for i in range(1,100) :
nhb = FLGR_Data2D(i*2+1,i*2+1,1,FLGR_UINT8,FLGR_RECT,FLGR_8_CONNEX)
flgr2d_open(imtmp,imout,nhb)
flgr2d_close(imout,imtmp,nhb);
flgr2d_rtview_refresh(scr0, imout, 0, 1)