Here is the writeup for the computational photography project on using frequencies and gradients!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This portion of the project referred to images by relative difference in pixel intensity rather than using actual color. To compute the differences, we must literally get the difference from every pixel to all 4 neighbors. Fortunately there is a faster way to do this than usingbrute force techniques. With a large matrix composed only of zeros, you can compute the total differences in a matrix. I used a sparse matrix, which is a very large matrix composed mostly of zeros.