https://github.com/italoseara/interpolation
Homework from CG class. Scale images according to a scale factor using multiple algorithms
https://github.com/italoseara/interpolation
cpp image-processing opengl
Last synced: about 2 months ago
JSON representation
Homework from CG class. Scale images according to a scale factor using multiple algorithms
- Host: GitHub
- URL: https://github.com/italoseara/interpolation
- Owner: italoseara
- Created: 2024-06-01T23:29:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-02T00:20:47.000Z (about 2 years ago)
- Last Synced: 2025-03-24T18:17:18.248Z (over 1 year ago)
- Topics: cpp, image-processing, opengl
- Language: C++
- Homepage:
- Size: 707 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interpolation
Homework from CG class. Scale images according to a given scale factor using multiple interpolation methods.
## Usage
```bash
make
./bin/main
```
`` is the path to the image you want to scale.
`-o ` is the path to the output image. If not provided, the output image will be saved as `output.png`.
`-t ` is the interpolation type. It can be `nearest` or `bilinear`. The default is `nearest`.
`-sx ` is the scale factor in the x-axis. The default is 2.
`-sy ` is the scale factor in the y-axis. The default is 2.
`-c` is to compare the output image with the original image. The default is false.
## Author
- [Italo Seara](https://github.com/italoseara)