CSCE 5683 - Homework 6
Due Date - 12/08/2010

1. Problem Statement:

The purpose of this assignment is to gain experience with color image processing and image manipulation in RGB and HSI color space. Students can choose to implement ONE of the following operations:

Vector median filtering: Write a function to calculate the vector median for each pixel in the color image using an NxN neighborhood. Remember, the vector median is NOT calculated using sorting, but using a search for the pixel value that has the smallest combined color distance to all other pixels in the neighborhood. Once you have RGB vector median filtering working, convert your function to process HSI images. Use the im_color.RGBtoHSI() and im_color.HSItoRGB() methods to convert your input image from RGB to HSI and back to RGB after processing.

Color adjustment: Write a function that adjusts the colors in an image by modifying the hue and/or saturation of each pixel in the image by a specified amount. Hue adjustments should implemented by adding an angle between [0..359] to each hue value. Saturation should be adjusted by multiplying by a positive scale factor. Take care that the resulting hue values are between [0..359] and saturation is between [0.255]. Use the im_color.RGBtoHSI() and im_color.HSItoRGB() methods to convert your input image from RGB to HSI and back to RGB after processing.

2. Testing:

Test your vector median filtering function in RGB space and HSI space using 3x3, 5x5 and 7x7 neighborhoods. How do your processing times and results compare to component-based median filtering using the menu program? This can be done using "menu median #nxdim #nydim infile outfile".

Test your color adjustment function by shifting the hues up and down by 1, 5, 10, and 50 degrees. Also try adjusting the saturations using scale factors of 0.8, 0.9, 1.1, and 1.2. See if you should be able to make the lenna.jpg image look a little less pink.

3. Documentation:

When you have completed your C++ program, write a short report (less than two pages long) describing what the objectives were, what you did, and the status of the program. Does it work properly for all test cases? Are there any known problems? Save this report in a separate text file to be submitted electronically.

4. Project Submission:

In this class, we will be using electronic project submission to make sure that all students hand their programming projects and labs on time, and to perform automatic analysis of all programs that are submitted. When you have completed the tasks above go to the class web site to "submit" your documentation, C++ program, and testing files.

The dates on your electronic submission will be used to verify that you met the due date above. All late projects will receive reduced credit (50% off if less than 24 hours late, no credit if more than 24 hours late), so hand in your best effort on the due date.

You should also PRINT a copy of these files and hand them into your teaching assistant in your next lab. Include a title page which has your name and uaid, and attach your hand written design notes from above.