Skip to content

remi-dupre/compression-fractale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compression Fractale Build Status

Algo de compression d'image par fractales. TIPE 2015-2016.

Configuration

Récupération du projet

git clone https://github.com/remi100756/Compression-Fractale.git
cd Compression-Fractale

Compilation

make -lpthread   # Compilation (linux)
make clean # Pour enlever les fichiers de compilation

Running the Compression Example

./fzip -p input-file.png -v -c --threads 20 -z -t -f output-file.ifs

Running the De-compression Example

./fzip -p output-file.png -v -c --threads 20 -x -t -f input-file.ifs -n 2

Runtime options

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

Exemple

Voici un exemple d'étapes successives de décompression d'une image:

Exemple:Lena

About

Algo de compression d'image par fractales. TIPE 2015-2016.

Resources

Stars

Watchers

Forks

Packages

No packages published