CSCE 5683 - Homework 2
Due Date - 2/19/2009, 11:59 pm

1. Problem Statement:

The purpose of this assignment is to learn about point operations and image enhancement. Your first task is to add a "Power" method to the im_short class with corresponding "power" function in the menu program. This function should have one parameter "gamma" and perform power law transformation to an imput image.

Your second task is to add a "Stretching" method to im_short with a corresponding "stretching" function in menu. This function will have four parameters (r1, s1, r2, s2) that specify the two control points for the piecewise linear mapping function we discussed in class.

Once you have debugged your program and you are getting valid output images, you can use the new method "Contrast" to measure the contrast of your images before and after applying your image enhancement methods. If you add this method call to your menu function, you can print the contrast as output images are generated.

Run a series of experiments to find the "best" set of parameters for the methods above. Save several output images for each method to include in your written report.

2. Design:

The online notes describe the "power law transformation" and the "contrast stretching techniques in more detail. You can use the existing "Greymap" method as a template for your new methods.

3. Implementation:

My standard advice is to develop your code incrementally so you always have something that compiles and runs, even if it is not complete.

4. Testing:

Test your program to check that it operates correctly for all of the requirements listed above. Also check for the error handling capabilities of the code. Save your testing output in text files for submission on the program due date.

5. Documentation:

When you have completed your program, write a short report (less than one page 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.

6. 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, 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 instructor in the department office. Include a title page which has your name and uaid, and attach your hand written design notes from above.