Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mzur/pyjbu
A Python implementation of Joint Bilateral Upsampling
https://github.com/mzur/pyjbu
image-processing joint-bilateral-upsampling python3
Last synced: about 2 months ago
JSON representation
A Python implementation of Joint Bilateral Upsampling
- Host: GitHub
- URL: https://github.com/mzur/pyjbu
- Owner: mzur
- License: mit
- Created: 2019-07-11T11:23:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T14:42:17.000Z (10 months ago)
- Last Synced: 2024-05-02T01:10:56.598Z (8 months ago)
- Topics: image-processing, joint-bilateral-upsampling, python3
- Language: Python
- Size: 7.81 KB
- Stars: 37
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyJBU
A Python implementation of Joint Bilateral Upsampling [[1]](#ref1).
## Installation
```
pip install -r requirements.txt
```## Usage
```
usage: jbu.py [-h] [--radius RADIUS] [--sigma-spatial SIGMA_SPATIAL]
[--sigma-range SIGMA_RANGE]
source reference outputPerform Joint Bilateral Upsampling with a source and reference image
positional arguments:
source Path to the source image
reference Path to the reference image
output Path to the output imageoptional arguments:
-h, --help show this help message and exit
--radius RADIUS Radius of the filter kernels (default: 2)
--sigma-spatial SIGMA_SPATIAL
Sigma of the spatial weights (default: 2.5)
--sigma-range SIGMA_RANGE
Sigma of the range weights (default: standard
deviation of the reference image)
```The source image will be upsampled to the resolution of the reference image. The result will be written to the specified path of the output image.
## References
1. Kopf, J., Cohen, M. F., Lischinski, D., & Uyttendaele, M. (2007, August). [Joint bilateral upsampling.](https://johanneskopf.de/publications/jbu/) In ACM Transactions on Graphics (ToG) (Vol. 26, No. 3, p. 96). ACM.