The project contains :
-
Executable files which are inside bin :
- test_kdtree which test the kdtree's functions.
- test_table which test the table's functions.
- trivial_method the application to generate a reversed image with the trivial method.
- kdtree_method the application to generate a reversed image with the kd-tree method.
-
The folder include contains header used by c files :
- classe.h ;
- exit_if.h;
- image.h;
- move_type.h;
- objet.h;
- pointer.h;
- type_obj.h;
- Headers used for the image's static library.
- table.h : for the color table;
- third_party_function.h
- color_swich.h : to reverse colors;
- kdtree.h : for the kd-tree;
-
The lib folder :
- libimage.a the static library of the file image.c.
-
object is the folder where are stocked object file a.k.a. temporary files.
-
ressource is the folder where are stocked :
- IMAGES folder which contains all pictures and colors tables
- inv_picture doler which contains images generated by the applications
- PROJET_FONDEMENT initial folder
- The folder doc with :
- The file doxyfile is used to generate the documentation.
- The html directory represente application's documentation on a website ;
-
script is the folder where bash scripts to generate graphs are stored;
-
The directory src contains source files :
- color_switch.c contains functions to write nearest image pixel from a table i an image;
- images.c is use to generate the library to deal with an image;
- kdtree_main.c uses kdtree functions to generate a reverse image;
- kdtree.c contains kdtree's functions;
- table.c contains table's functions;
- third_party_function.c contains third functions to lighten other files;
- trivial_main uses trivial method functions to generate a reverse image;
- The folder TEST contains the test's algorithms ;
-
The Makefile to compile the project.
The goal was to create differents applications to reverse an image.
Command to compile the applications and tests : $ make
===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--
Command to compile only the trivial method : $ make trivial
Command to compile only the kd-tree method : $ make kdtree
Command to compile every method : $ make inv
===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--
Command to compile the test of trivial_main.c and of kdtree_main.c : $ make tests
===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--
Command to clean the temporary files : $ make clean
Command to restore the project : $ make distclean
===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--===--
Command to give the user the right to execution the scripts :
$ chmod u+x ./script/graph.sh
$ chmod u+x ./script/seuil.sh
$ chmod u+x ./script/gnuplot.sh
$ chmod u+x ./script/gnuplot_seuil.sh
$ chmod u+x ./script/reset.sh