This question has been tripping me up for a while Any ideas

This question has been tripping me up for a while. Any ideas?

\"Design a linear filter that creates a horizontal blur over a length of 7 pixels, thus simulating the effect of camera movement during exposure\"

Solution

What you need to do is create a horizontal filter of 7 pixels with values 1/7 each and multiply that to each pixel in the image.

Hence, the filter = [1/7, 1/7, 1/7, 1/7, 1/7, 1/7, 1/7]

So, assuming that your image is of the form image[width][height]

Iterate through the image and do,

image[i] = image[i]*filter[i]

This question has been tripping me up for a while. Any ideas? \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site