GPU Programming Lab 5
Crisp, clear images have become an increasing plague upon the Internet, leaving blurriness as an elegant form of imagery for a more civilized age. This is largely due to the automation of focus, where modern devices have made it increasingly difficult to take images in which the contents can not clearly be identified.
Due Monday, October 3
In order to push back against this trend, develop a program which will add a degree of fuzziness and blur to images. Start with the image filter demo in using compute shaders from Wednesday, and modify it so that each pixel is recolored to the average of the neighboring pixels in both X and Y directions. That is, each pixel will be recolored by the average of 4 surrounding pixels. It is essential to copy the image to a separate buffer while doing this conversion to ensure consistent results.
Once this is complete, add to the program to re-apply the filter 10 times. Don't copy date to or from the CPU in order to do this - just swap which buffer is input and which is output, and run the shader again.