Read, Display and
Analyze Lena Image
Save the image of lena shown below in a file lena.png.
The image can be read with the IDL procedure read_image.
Write a procedure named read_lena. Use the procedure
to read the image and print out the following information:
-
Number of rows in the image
-
Number of columns in the image
-
Brightest pixel value
-
Darkest pixel value
-
Brightest pixel location
-
Darkest pixel location
You will find the following procedures or functions to be
useful: READ_IMAGE, MAX, MIN, SIZE, WHERE. You can find information about these
functions in IDL Online Help.
Submit the program named read_lena.pro
to the instructor for evaluation.