Ask Your Question

Revision history [back]

I agree with Haris Moonamkunnu, you can use OpenCV built-in functionality to do what you want.

Besides, you are getting only 1/3 of the image blurred with your function because you are probably providing it a color image (3 channels - RGB) as input and you are looping over it as a grayscale image (1 channel - GRAY).