How do I gaussian blur an image without using any in-built gaussian functions?

前端 未结 5 1507
一生所求
一生所求 2020-11-28 02:07

I want to blur my image using the native Gaussian blur formula. I read the Wikipedia article, but I am not sure how to implement this.

How do I use the formula to de

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 02:32

    Well, Gaussian Kernel is a separable kernel.
    Hence all you need is a function which supports Separable 2D Convolution like - ImageConvolutionSeparableKernel().

    Once you have it, all needed is a wrapper to generate 1D Gaussian Kernel and send it to the function as done in ImageConvolutionGaussianKernel().

    The code is a straight forward C implementation of 2D Image Convolution accelerated by SIMD (SSE) and Multi Threading (OpenMP).

    The whole project is given by - Image Convolution - GitHub.

提交回复
热议问题