Coder Social home page Coder Social logo

tanguis / apply-a-color-table-to-an-image Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.81 MB

Modify the colors of an image from a given color table, using either exhaustive modification or a KDTree - Done in 2021 as part of graduate studies at ENSICAEN, France.

License: MIT License

Makefile 4.55% C 88.32% Shell 7.13%

apply-a-color-table-to-an-image's Introduction

Project 2021, 7 Janvier - STEIMETZ Tangui - PICQUE Kylian

Project Tree View

tree.png

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.

Project Goal

The goal was to create differents applications to reverse an image.

Project Compilation

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

apply-a-color-table-to-an-image's People

Contributors

tanguis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.