Re: [SIP-devel] funtion improfile improved
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: Ricardo F. <rf...@if...> - 2004-05-20 03:36:00
|
On Thu, 13 May 2004, DRUEL Jocelyn wrote: > Hi, > When I tested the Enrico Segre toolbox, I found that the xgetpixel function > was cool but unfortunately not adapted to SIP. Hi, You mean the "xprofile" function, not "xgetpixel", right? > So, I reworked on it and on my previous improfile function. > > I send you the result. > I handles gray levels, indexed images and returns no error if a color image > is displayed (it simply converts it to gray before finding profiles). > Hi, Jocelyn, the function is OK but scilab's display is still very slow for displaying/redrawing images, so I added a remark in the manual section about this. Also, I added the line: xset('wshow') just after the comment "//End of draw" of your function. This way, before calling "imxprofile", the user can issue the following conmmand: imshow(image); xset('pixmap',1); this is double buffered graphics, which /should/ be much faster than scilab's normal mode, but currently it is a bit slow, although the annoying screen redrawing is eliminated in pixamp mode. If you have the time, try these changes on your computer. It would be just great if scilab's redrawing of images were faster... best, Ricardo. -- Ricardo Fabbri, Cybernetic Vision Research Group, USP, Brazil. TEL: +55 016 273.9882 CEL: +55 016 9121.9046 ICQ: 208974212 |