https://github.com/prashantrahul141/image-resizing-c
Nearest Neighbour implemented in C
https://github.com/prashantrahul141/image-resizing-c
c image-processing image-resizing nearest-neighbor
Last synced: 3 months ago
JSON representation
Nearest Neighbour implemented in C
- Host: GitHub
- URL: https://github.com/prashantrahul141/image-resizing-c
- Owner: prashantrahul141
- License: mit
- Created: 2024-02-28T19:07:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T15:19:07.000Z (over 1 year ago)
- Last Synced: 2025-03-15T11:50:03.088Z (7 months ago)
- Topics: c, image-processing, image-resizing, nearest-neighbor
- Language: C++
- Homepage:
- Size: 725 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image resizing in C.
Resize images using [Nearest Neighbor Interpolation](https://en.wikipedia.org/wiki/Nearest_neighbor_value_interpolation) algorithm.
### Building
This uses a simple Makefile, just run (with [make](https://www.gnu.org/software/make/) installed):
```sh
make
```### Usage
```sh
Usage:
main [scaling factor] [file path]
```example:
```sh
./main 2 ./images/pixel_art.png
./main 4 ./images/arch.png
./main 20 ./images/2x2.png
```### Images
[./images/pixel_art.png](https://github.com/prashantrahul141/image-resizing-c/blob/main/images/pixel_art.png) - Scene from KatanaZero.