SIP Toolbox

improfile - Draws intensity profiles of an image

Calling Sequence

[hprofile,vprofile]=improfile(matrix[,option,maximal_luminance])

Parameters

Description

Draws the values of pixels on a line and/or a row. Can draw profiles on the image or in separate windows. With the option=2, you can determine radius w of a laser beam, which allows you to find the beam waist.

This function was created (and tested) only with gray level images.

Examples

   a=imread(SIPDIR+'images/tru.jpg');
   g=im2gray(a);
   improfile(g);

   //profiles in separate windows
   improfile(g,1)

   //laser beam visualisation
   b=gray_imread(SIPDIR+'images/photonics/laser1.jpg');
   improfile(b,2);
   

Authors

Jocelyn DRUEL <jocelyn.druel1@libertysurf.fr>
Ricardo Fabbri <ricardofabbri@users.sf.net>

Availability

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

http://siptoolbox.sourceforge.net

See Also

xgetpixel,