Gaussian Filtering is widely used in the field of image processing. It is used to reduce the noise of an image. In this article we will generate a 2D Gaussian Kernel. The 2D Gaussian Kernel follows the below given Gaussian Distribution.
Where, y is the distance along vertical axis from the origin, x is the distance along horizontal axis from the origin and σ is the standard deviation.
Implementation in C++
0.00296902 0.0133062 0.0219382 0.0133062 0.00296902 0.0133062 0.0596343 0.0983203 0.0596343 0.0133062 0.0219382 0.0983203 0.162103 0.0983203 0.0219382 0.0133062 0.0596343 0.0983203 0.0596343 0.0133062 0.00296902 0.0133062 0.0219382 0.0133062 0.00296902
This article is contributed by Harsh Agarwal. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Difference between Low pass filter and High pass filter
- Spatial Filters - Averaging filter and Median filter in Image Processing
- Gaussian Elimination to Solve Linear Equations
- Node Jimp | Gaussian
- Nodejs | GM gaussian() Function
- Mahotas - Gaussian filtering
- Generation of n numbers with given set of factors
- Noise removal using Median filter in C++
- Filter Color with OpenCV
- MATLAB - Ideal Lowpass Filter in Image Processing
- MATLAB - Ideal Highpass Filter in Image Processing
- MATLAB - Butterworth Highpass Filter in Image Processing
- MATLAB - Butterworth Lowpass Filter in Image Processing
- Maximum XOR of Two Numbers in an Array | Set 2
Improved By : jit_t