CIS 410/510 Project 3
- Here is the PDF of the instructions.
- Here is a beginning VTK program.
- Here is a data file that project3 requires (i.e., proj3_data.vtk). Make sure it is in the same directory you invoke your executable from.
- Here is the bluehot.png output.
- Here is the difference.png output.
- Here is the hsv.png output.
Image Differencer
This image differencing program can help you verify that your images are
correct.
Directions:
- Make a directory called "differencer"
- Download the file differencer.cxx
- The easiest way to do CMake is probably to adapt your own.
- Run CMake in the differencer directory.
- Compile the program.
- Run the program. Add the two images to compare as arguments as you run.
- The program will (i) congratulate you, or (ii) tell you the images are not the same size, or (iii) output a difference map.
Debugging
Here are some print statements from my code. I am looping over all 500x500 pixels, with the columns as I and the rows as J. These print statements are for I==367, J==99, and this is what I got for the point location, the field, the normalized field, and applying the blue hot color map
- PT = 4.23848, -5.42886
- Got an F of 3.58282
- Normalized F = 0.623776
- (Blue hot) RGB as float: 0.623776, 0.623776, 0.811888
- (Blue hot) RGB as unsigned char: 159, 159, 207
(note that printing unsigned chars can get wonky and the best thing to do is cast them to ints as you print them.)