In this assignment, I replaced accumulation of numbers of photon with the actual XYZ value for each photon. After having all XYZs value for each pixels, I normalize them with the max sum of X+Y+Z of all pixels. Then use a linear transformation to convert XYZ value to RGB. I used the 3x3 matrix posted on BruceLindbloom.com. After a few experiments, I found out the profile of ColorMatch is best for my Dell monitor. Below are the results of HW2 (right) compared to HW1 (left). I think the approach in HW1 produced a much better result.











