An implementation of the seam carving algorithm to rescale images.
This implementation uses the stb headers for image I/O
$ cc -o nob nob.c
$ ./nob.h ./images/test_0.jpg ./images/output.png
Original Image | After removing 50px from width | After removing 100px from width | After removing 200px from width |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |