Algo de compression d'image par fractales. TIPE 2015-2016.
git clone https://github.com/remi100756/Compression-Fractale.git
cd Compression-Fractale
make -lpthread # Compilation (linux)
make clean # Pour enlever les fichiers de compilation
./fzip -p input-file.png -v -c --threads 20 -z -t -f output-file.ifs
./fzip -p output-file.png -v -c --threads 20 -x -t -f input-file.ifs -n 2
USAGE:
./fzip [-e <int>] [--threads <int>] [-n <int>] [-b <int>] [-s <int>]
[-f <string>] [-p <string>] [-x] [-z] [-t] [-c] [-q] [-v] [--]
[--version] [-h]
Where:
-e <int>, --examples <int>
Generate a set of type files, give their size as an argument
--threads <int>
Number of maximum threads used
-n <int>, --nb-iterations <int>
The number of iterations at decompression
-b <int>, --big <int>
The size of the big squares (compression)
-s <int>, --small <int>
The size of the small squares (compression)
-f <string>, --fractal-file <string>
The .ifs file
-p <string>, --png-file <string>
The .png file
-x, --extract
The file entered must be extracted
-z, --compress
The file entered must be compressed
-t, --transparence
The image must be compressed with transparency
-c, --couleur
The image must be compressed in color
-q, --quiet
Retire les affichages courants de la console
-v, --verbose
Show debugging
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
--version
Displays version information and exits.
-h, --help
Displays usage information and exits.
Fractal compression algorithm
Voici un exemple d'étapes successives de décompression d'une image: