SIP Toolbox

imxprofile - Draws intensity profiles of an already displayed image

Calling Sequence

[x,y,hprofile,vprofile]=imxprofile(matrix[,option,xscale,yscale,zscale,maximal_luminance])

Parameters

Description

This is an improved version of improfile: it's supposed to be more intuitive and pleasant.

The function draws the values of pixels on a line and a row. It can draw profiles on the image and in separate windows.

People interested in determining the radius w of a laser beam (in order to calculate its beam waist for example) can try option=2.

Examples

   a=gray_imread(SIPDIR+'images/tru.jpg');
   imshow(a); 
   imxprofile(a);

   //profiles in separate windows
   xbasc();
   imshow(a); 
   imxprofile(a,1)

   //laser beam visualisation
   b=imread(SIPDIR+'images/photonics/laser1.jpg');
   xbasc();imshow(b,[]);
   imxprofile(b,2);
   

Authors

Jocelyn DRUEL <jocelyn DOT druel1 AT libertysurf DOT fr>
Ricardo Fabbri <ricardofabbri AT users DOTsf DOT net>

Remarks

This function is still BETA. Scilab's display may be slow, or some minor bugs may appear during the use of this function.

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also

xgetpixel,  improfile,