Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4516a1c

Browse files
committed
Typos in README.md fixed
1 parent 3829fc4 commit 4516a1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this paper image smoothing algorithm based on gradient analysis is proposed.
88
![boundaries](/images/boundaries.png)
99
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.
1010
![gradients](/images/gradients.png)
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.
1212

1313
## Examples
1414
![example2](/images/example2.jpg)
@@ -20,7 +20,7 @@ c) - bilateral filter
2020
d) - our filter
2121
![comparison](/images/comparison.png)
2222
## 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.
2424
![edges](/images/edge_detection.png)
2525

2626
## How to use code
@@ -39,8 +39,8 @@ int main()
3939
cv::Mat img = cv::imread("your_input_file_name", cv::IMREAD_COLOR); //read image using opencv from file into Mat type
4040

4141
int kernelSize = 3; //set kernelSize = 3 for filtering with 3x3 kernel
42-
Filter<float, uint8_t> smooth; //create the instance of smooth
43-
cv::Mat output = smooth(img, kernelSize); //smooth image
42+
Filter<float, uint8_t> filter; //create the instance of filter
43+
cv::Mat output = filter(img, kernelSize); //smooth image
4444

4545
cv::imwrite("your_output_file_name", output); //write the result
4646
return 0;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /