GithubHelp home page GithubHelp logo

sheldon-pang / bmp-image-processor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 241 KB

C program that loads an BMP image file, applies filtering, and save back to disk, with multi-thread processing support.

C 100.00%

bmp-image-processor's Introduction

BMP-Image-Processor

/**

  • A program that read an BMP image file, applying filter, and save to disk.
  • Filter implemented in this version:
    1. Grayscale Filter
    1. Color Shift Filter
    1. Scaling Filter
  • @author Sheldon Pang
  • @version 1.1
  • Update info:
  • In version 1.1: fixed image offset issue.
  • Now will skip bytes based on the image offset value, and update the output file's offset value accordingly. */

Note: command to compile in gcc 'gcc PangImageProcessor.c Image.c BMPHandler.c -o ImageProcessor'

usage:

          ./ImageProcessor -f filename [-h] [-r -g -b val] [-w] [-s val] [-o filename]
               -f  filename:    must have a input file name  to run!
               -r  value:       use value to increase or decrease the color red
               -g  value:       use value to increase or decrease the color green
               -b  value:       use value to increase or decrease the color blue
               -w:              convert RGB to grayscale equivalent
               -s  float:       use value to resize the image
               -o  filename:    optional to customize output filename
               -h:              print out this help message

bmp-image-processor's People

Contributors

sheldon-pang avatar

Stargazers

 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.