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.
- Node Jimp | Gaussian
- Gaussian Elimination to Solve Linear Equations
- Generation of n numbers with given set of factors
- Filter Color with OpenCV
- Noise removal using Median filter in C++
- Number of ways to divide string in sub-strings such to make them in lexicographically increasing sequence
- Python | OCR on All the Images present in a Folder Simultaneously
- Calculate the number of set bits for every number from 0 to N
- Number of ways to distribute N Paper Set among M students
- Diameter of a Binary Indexed Tree with N nodes
- Program for nth Fuss–Catalan Number
- Check if a number is Euler Pseudoprime
- Maximum prime moves to convert X to Y
- Minimum difference between any two primes from the given range
Improved By : jit_t