https://github.com/umutsevdi/rle-img-compression
A Utility program that can compress PGM images using Run Length Encoding Algorithm or reconstruct them without loss.
https://github.com/umutsevdi/rle-img-compression
c image pgm pgm-image rle rle-compression-algorithm
Last synced: 4 months ago
JSON representation
A Utility program that can compress PGM images using Run Length Encoding Algorithm or reconstruct them without loss.
- Host: GitHub
- URL: https://github.com/umutsevdi/rle-img-compression
- Owner: umutsevdi
- Created: 2021-06-11T11:59:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T09:22:52.000Z (almost 4 years ago)
- Last Synced: 2024-11-17T10:48:14.486Z (6 months ago)
- Topics: c, image, pgm, pgm-image, rle, rle-compression-algorithm
- Language: C
- Homepage:
- Size: 622 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Run Length Encoding Image Compression
A C program that can compress and decompress images, display instances of colors and edit them.
![]()
## How to use
* When the program starts, you'll see two avaliable commands. To run a command type it's name.
## Compress
* Compresses a `pgm` image and saves it as `sqz` file format. Uses RLE-Image Compression.`
RLE stands for Run Length Encoding. Images commonly have the same information repeated numerous times in a row. Images can have strips of the same pixel color for example. Run Length Compression stores representations of this data in per run format, thereby compressing the data
`## Construct
* Reads the given compressed `.sqz` file.
![]()
* Then allows you to choose one of following commands.
* decode : Reconstructs the `pgm` image.
* recolor : Chagnnges all instances of given color.
* edit : `not avaliable` Edits given pixel in the file.
* histogram : displays instances of each color in the file.
![]()