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 c2e244b

Browse files
committed
Update readme - add citation badge
1 parent a8870c3 commit c2e244b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

‎README.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Image Smoothing Algorithm Based on Gradient Analysis
2+
3+
[![DOI](https://zenodo.org/badge/261705729.svg)](https://zenodo.org/badge/latestdoi/261705729)
4+
25
This repository contains C++ and Python 3 implementation of an image smoothing algorithm that was proposed in this [publication](https://ieeexplore.ieee.org/document/9117646).
36

47
![example1](/images/example.png)
58

6-
79
## How to use code
10+
811
Requirements for C++:
9-
- opencv 4.3.0 if you want Mat type support
12+
13+
- opencv 4.3.0 if you want Mat type support
1014

1115
Here is the simple example of filter usage with opencv Mat images:
1216

@@ -26,12 +30,14 @@ int main()
2630
return 0;
2731
}
2832
```
33+
2934
Python requirements are in file requirements.txt
3035
use:
3136
`pip install --upgrade pip`
3237
`pip install -r requirements.txt`
3338

3439
Here is example with python:
40+
3541
```python
3642
import filter_based_on_gradient_analysis as fga
3743
import cv2
@@ -44,6 +50,7 @@ cv2.imwrite('your_output_file_name', output) # write the result
4450
```
4551

4652
## General idea
53+
4754
Our algorithm uses filtering and to achieve edge-preserving smoothing it uses two components of gradient vectors: their magnitudes (or lengths) and directions. Our method discriminates between two types of boundaries in given neighborhood: regular and irregular ones.
4855
![boundaries](/images/boundaries.png)
4956
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.
@@ -54,7 +61,7 @@ When gradient magnitudes are inverted bigger values refer to textures (insignifi
5461

5562
If you used the code or want to reference this method in your work, please cite:
5663

57-
```
64+
```bibtex
5865
@inproceedings{gudkov2020image,
5966
title={Image smoothing algorithm based on gradient analysis},
6067
author={Gudkov, Vladimir and Moiseev, Ilia},
@@ -64,4 +71,3 @@ If you used the code or want to reference this method in your work, please cite:
6471
organization={IEEE}
6572
}
6673
```
67-

0 commit comments

Comments
(0)

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