Skip to content

Command line tool for de/compressing PGM image files using Huffman encoding

Notifications You must be signed in to change notification settings

zeyad-kay/pgm-huffman-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PGM Compressor

Command line utility for de/compressing PGM image files using Huffman compression algorithm. Compression outputs 2 files; the encoded file (.enc) and the frequency tree (.frq).

Build

Make sure you have any C++ compiler then build /src/main.cpp.

Example using g++.

$ g++ src/main.cpp -o huff-pgm

Usage

# Compression
$ huff-pgm image.pgm

# Decompression
$ huff-pgm image.enc -t image.frq

There's a data.zip folder containing sample PGM image files for testing.

About

Command line tool for de/compressing PGM image files using Huffman encoding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages