Image processing algorithm - Blur, written on C++ using OpenCV