Git Product home page Git Product logo

bmp-images-processing-in-c's Introduction

BMP IMAGE PROCESSING IN C

Subject: C Seminar

University: Facultad de Informática - Universidad Nacional de La Plata

Student: Alconada Verzini, Federico Martín

OBJECTIVE:

Make a programme in C that reads a BMP image file, stores its content in the structure bmp_file which saves the header, colours palette (if it exists) and the matrix (real image). Then, according to the parameters that the programme receives, it will invoke to different functions associated to the parameters.

HOW TO USE IT:

-h: o -?: shows a menu about how to run the script.

-s: shows information about the header of the BMP. If no other option is specified (except -i), it won't save any output file.

-p: vertical flip.

-r: rotates the matrix 90 degrees.

-n: inverts image colours.

-d: duplicates the image size.

-f: reduces image size to half.

-b RATIO: blur effect with RATIO pixels.

-lh WIDTH SPACE COLOR: draws horizontal lines of specified colour with specified width pixels, separated by SPACE pixels.

-lv WIDTH SPACE COLOR: draws vertical lines of specified colour with specified width pixels, separated by SPACE pixels.

-o OUTPUT: specifies the name of the file in which the output image will be stored. If the name is not specified, out.bmp will be used.

-i INPUT: name of the file with the image that you want to process. This argument MUST exists.

The programme made work in Linux but in Windows has some bugs.

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.