QuirrelForU / SFUAlgh4_Quadtree_ImageCompression

A command-line interface (CLI) module for image compression using quad-trees. Support creation step-by-step gif animation for compression.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuadTree Image Compression

A command-line interface (CLI) module for image compression using quad-trees.
Max quad-trees depth = 8.
Lower depth means stronger compression.

Features

  • Image compression using the QuadTree data structure.
  • Customizable depth for recursive search in the QuadTree.
  • Option to show or hide lines in the output image.
  • Creation of GIF animations to visualize the compression process at different depths.

Examples of Usage:

Example 1:

python main.py data\pupsik.jpg --depth 4  --show_lines

pupsik_ pupsik_compress pupsik_gif

Example 2:

python main.py data\jaba.jpg --depth 3333  --show_lines  

jaba_ jaba_compress jaba_gif

Example 3:

python main.py data\catdespair.jpg  --depth 2   

despair_ despair_compress despair_gif

About

A command-line interface (CLI) module for image compression using quad-trees. Support creation step-by-step gif animation for compression.


Languages

Language:Python 100.0%