You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ In this paper image smoothing algorithm based on gradient analysis is proposed.
8
8

9
9
Regular boundaries have small deviations of gradient angles and the opposite for irregular ones. To measure closeness of angles cosine of doubled difference is used. As additional measure that helps to discriminate the types of boundaries inverted gradient values were used.
10
10

11
-
When gradient magnitudes are inverted bigger values refer to textures (insignificant changes in gradient) and smaller refer to strong boundaries. So textures would have bigger weights and hence they would appear smoother. We also propose to smooth image of gradient magnitudes with median smooth to enhance visual quality of results. The method proposed in this paper is easy to implement and compute and it gives good results in comparison with other techniques like bilateral smooth.
11
+
When gradient magnitudes are inverted bigger values refer to textures (insignificant changes in gradient) and smaller refer to strong boundaries. So textures would have bigger weights and hence they would appear smoother. We also propose to smooth image of gradient magnitudes with median filter to enhance visual quality of results. The method proposed in this paper is easy to implement and compute and it gives good results in comparison with other techniques like bilateral filter.
12
12
13
13
## Examples
14
14

@@ -20,7 +20,7 @@ c) - bilateral filter
20
20
d) - our filter
21
21

22
22
## Edge detection
23
-
Here is the output of Canny edge detector that was applied on the image with and without preprocessing with our smooth.
23
+
Here is the output of Canny edge detector that was applied on the image with and without preprocessing with our filter.
24
24

25
25
26
26
## How to use code
@@ -39,8 +39,8 @@ int main()
39
39
cv::Mat img = cv::imread("your_input_file_name", cv::IMREAD_COLOR); //read image using opencv from file into Mat type
40
40
41
41
int kernelSize = 3; //set kernelSize = 3 for filtering with 3x3 kernel
42
-
Filter<float, uint8_t> smooth; //create the instance of smooth
0 commit comments