The PROFILES procedure interactively draws row or column profiles of an image in a separate window. A new window is created and the mouse location in the original window is used to plot profiles in the new window.
This routine is written in the IDL language. Its source code can be found in the file
profiles.pro
in the
lib
subdirectory of the IDL distribution.
Move the mouse within the original image interactively creates profile plots in the newly-created profile window. Pressing the left mouse button toggles between row and column profiles. The right mouse button exits
Create and display an image and use the PROFILES routine on it.
A = BYTSCL(DIST(256)) ; Create an image.
PROFILES, A, WSIZE = .5 ; Run the PROFILES routine.
A 320 x 256 pixel PROFILES window should appear. Move the cursor over the original image to see the profile at the cursor position. Press the left mouse button to toggle between row and column profiles. Press the right mouse button (with the cursor over the original image) to exit the routine.