An open API service indexing awesome lists of open source software.

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

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)