Skip to content

Commit 8296643

Browse files
authored
Update README.md
1 parent 21e8d4b commit 8296643

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,29 @@ Here we will be smoothing an image using Gaussian Blur. Image smoothing basicall
6969
**Image after smoothing:**
7070
![Screenshot_20190818_160734](https://user-images.githubusercontent.com/41234408/63223434-e4f40100-c1d2-11e9-9472-c5491f7c11d8.png)
7171

72+
## Other methods for image smoothing
73+
74+
### blur()
75+
76+
We can use the `cv::blur()` method in [this](https://github.com/yashk2000/Image-Processing/blob/master/imgSmoothingBlur.cpp) way.
77+
78+
**Image after blurring**
79+
![Screenshot_20190818_165436](https://user-images.githubusercontent.com/41234408/63223842-29829b00-c1d9-11e9-8d3f-4e02883a9a8a.png)
80+
81+
### medianBlur()
82+
83+
We can use the `cv::medianblur()` method in [this](https://github.com/yashk2000/Image-Processing/blob/master/imageSmoothingMedianBlur.cpp) way.
84+
85+
**Image after blurring**
86+
![Screenshot_20190818_165500](https://user-images.githubusercontent.com/41234408/63223833-07891880-c1d9-11e9-8de9-1e37b4790da1.png)
87+
88+
### bilateralFilter()
89+
90+
We can use the `cv::bilateralFilter()` method in [this](https://github.com/yashk2000/Image-Processing/blob/master/imgSmoothingBilateralFilter.cpp) way.
91+
92+
In bilateralFilter(), we need to keep the input and output images differnet, else we get an error.
93+
94+
Bilateral filter also takes a gaussian filter in space, but one more gaussian filter which is a function of pixel difference. Gaussian function of space make sure only nearby pixels are considered for blurring while gaussian function of intensity difference make sure only those pixels with similar intensity to central pixel is considered for blurring. So it preserves the edges since pixels at edges will have large intensity variation. The texture of the image is reduced, but the edges are conserved.
95+
96+
**Image after blurring**
97+
![Screenshot_20190818_165158](https://user-images.githubusercontent.com/41234408/63223805-9e090a00-c1d8-11e9-8c8b-da43f3f75df0.png)

0 commit comments

Comments
 (0)