[SIP-devel] a new version for improfile
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: DRUEL J. <joc...@li...> - 2003-05-23 12:36:56
|
Hi, I worked on improfile and I did 3 things: 1) a simplified version: I suppressed the possibility to have just one of the profiles (either vertical or horizontal). I don't think anybody needs this possibility. Tell me if I'm wrong. The code is easier like this (and the easier=the better). 2) the function returns 2 matrix with the vertical and horizontal profiles 3) the gaussian interpolation: by giving option=2, we can now see the profiles and their gaussian interpolation. I needed this functionnality because we work with laser beams: it's a way to see the quality of a laser. You can try it with the image joined. improfile(imread('laser1.jpg'),2) This new version of improfile has a different number of arguments compared with the previous version (the argument "direction" disappears). I hope, it's not a pb for anybody. For the gaussian interpolation, I created a function gaussprofile: it's a separate function (and not a sub-function of improfile), simply because scilab-2.6 does not support sub-functions. I noted a small pb: if I call improfile with no graphical window present, I have the title "left click to select..." If a graphicalwindow is already present, I see the image, but I don't have this title (I have no title in fact). Well, not very important, just a bit strange. Best regards. Jocelyn -- Powered by Linux |