This project simulate the process of encode a image in JPEG 2000 format using Arithmetic Coding and compare its performent with huffman coding.
Arithmetic Coding: https://github.com/tommyod/arithmetic-coding.git
Sample Image Data Set: Random Image Sample Dataset
- Install package
pip install -r requirements.txt
- 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
- 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.