Previous Getting Started with IDL: Images Next

Extracting Profiles

Another useful image processing tool is the PROFILES routine. This routine interactively draws row or column profiles of an image. It allows you to view an image and an X-Y plot of the pixel brightnesses in any row or column of the image simultaneously.

  1. Use the PROFILES routine with the rotated image that you just displayed by entering the following:
  2. PROFILES, R  
    

     

    Figure 6-18: Viewing an Image and an X-Y Plot of the Pixel Brightnesses

    Figure 6-18: Viewing an Image and an X-Y Plot of the Pixel Brightnesses

     

    A new window for displaying the profiles appears. Move the cursor in the window containing the image R to display the profiles of different rows and columns.

     

  3. Click the left mouse button while the cursor is in the image window to switch between displaying row and column profiles.
  4.  

  5. Click the right mouse button while the cursor is in the image window to exit the PROFILES routine.

  IDL Online Help (March 06, 2007)