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 firstname.lastname@example.org. 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.
- Spatial Filters - Averaging filter and Median filter in Image Processing
- Mahotas - Gaussian filtering
- Node Jimp | Gaussian
- Nodejs | GM gaussian() Function
- Gaussian Elimination to Solve Linear Equations
- Difference between Low pass filter and High pass filter
- Generation of n numbers with given set of factors
- Filter Color with OpenCV
- Noise removal using Median filter in C++
- MATLAB - Ideal Highpass Filter in Image Processing
- MATLAB - Butterworth Lowpass Filter in Image Processing
- MATLAB - Butterworth Highpass Filter in Image Processing
- MATLAB - Ideal Lowpass Filter in Image Processing
- Queries to count characters having odd frequency in a range [L, R]
Improved By : jit_t