First Bytes Programming Lab 3.5

This lab is available online at www.cs.utexas.edu/users/scottm/firstbytes.

Introduction: In this lab your will write a program to filter various images. 

  1. Go to the web page above to download the image filtering program.
     

  2. Start LabView and open the ImageFiltering.vi
     

  3. A large portion of the program has already been completed. The program can load images from the computer. Run the program and load an image. You can download images from the web to use or use images you saved in lab 3.
     

  4. The program breaks an image down into its individual pixels and each pixel into its individual red, green, and blue components. As written the program does not alter these components in any way. Notice the labels in the program. These point out the wires that carry the number that represents the amount of red, green, or blue in an image. Right now those wires are not changed in any way.


     

  5. To filter an image some mathematical operation is carried out on the numbers representing the colors. Consider the following change to the program. The wire with the amount of blue in a pixel was deleted and replaced with a wire that was subtracted from itself. In algebraic terms X - X which always equals what? What do you think the this effect will have on the image?

    Make this change to your program and see what happens.
     

  6. Dramatic effects can be achieved with simple changes. Try some of the following:

    make the image grayscale. If white is all three colors at maximum intensity and black is all three colors at minimum intensity how would you make a shade of gray?

    Try removing all the red from an image

    Try adding some fixed amount to one color or all three

    Try swapping colors

    Try making a picture that is simply black and white. When should a pixel be black? When should it be white?