Skip to content

dqnhat/Arithmetic-Coding-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arithmetic-Coding-Simulation

This project simulate the process of encode a image in JPEG 2000 format using Arithmetic Coding and compare its performent with huffman coding.

Source

Arithmetic Coding: https://github.com/tommyod/arithmetic-coding.git

Sample Image Data Set: Random Image Sample Dataset

How to use

  1. Install package

pip install -r requirements.txt

  1. Encode

python scripts\encode_image.py

  • Select image and channel (Red, green, blue, lumin)
  • Program auto encode to 4 file json
    • Encode arithmetic
    • Arithmetic frequencies
    • Encode huffman
    • Huffman frequencies
  1. Decode

python scripts\decode_image.py

  • Select encode json
  • Program auto decode to image
    • Find frequencies file
    • Find meta file

Since encode process only use one color channel, decode only have one channel.

About

This project simulate the process of encode a image in JPEG 2000 format using Arithmetic Coding and compare its performent with huffman coding.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages