00001
00002
00003
00004
00005
00006 import os
00007 import sys
00008 import time
00009
00010 from fulguro import *
00011
00012 imin = flgr2d_load_pgm('../../images/gray/lena.pgm')
00013 imout = FLGR_Data2D(imin.size_y,imin.size_x,1,FLGR_UINT8)
00014 imtmp = FLGR_Data2D(imin.size_y,imin.size_x,1,FLGR_UINT8)
00015
00016 scr0 = flgr2d_rtview_create(imin, 1, 2)
00017
00018 flgr2d_rtview_refresh(scr0, imin, 0, 0)
00019 flgr2d_copy(imout,imin)
00020
00021 for i in range(1,100) :
00022 nhb = FLGR_Data2D(i*2+1,i*2+1,1,FLGR_UINT8,FLGR_RECT,FLGR_8_CONNEX)
00023 flgr2d_open(imtmp,imout,nhb)
00024 flgr2d_close(imout,imtmp,nhb);
00025 flgr2d_rtview_refresh(scr0, imout, 0, 1)
00026
00027