The PROFILE function extracts a profile from an image and returns a floating-point vector containing the values of the image along the profile line marked by the user.
This routine is written in the IDL language. Its source code can be found in the file
profile.pro
in the
lib
subdirectory of the IDL distribution.
To mark a profile line after calling PROFILE, click in the image with the left mouse button to mark the beginning and ending points. The pixel coordinates of the selected points are displayed in the IDL command log.
Display an image, select a profile and plot that profile in a new window.
A = BYTSCL(DIST(256)) ; Create an image.
R = PROFILE(A) ; Extract a profile from the image .
Mark two points on the image with the mouse.