Skip to content

sachinkumarsingh092/bitmap-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitmap-filter

License

Filters for 24 bit uncompressed bitmap images. Available filters are:

  • Grayscale - Converts the image into a single sample containing only intensity information.

  • Reflect - Converts the image into its mirror image.

  • Blur - Blurs the image.

  • Edge - Highlights the edges in the image. It uses basic sobel operator to detect the edges.

Installation

  • Clone the repository.
$ git clone https://github.com/sachinkumarsingh092/bitmap-filter.git
  • Change the current directory to bitmap-filter
$ cd bitmap-filter
  • Use make to build the executable.
$ make

If you want to remove the executable, use the clean target in make

$ make clean

You will need to install clang if not already available. To use gcc compiler make changes in Makefile accordingly.

Usage

Original Image:

Grayscale

./filter -g input.bmp output.bmp

Refect

$ ./filter -r input.bmp output.bmp

Blur

$ ./filter -b input.bmp output.bmp

Edge

$ ./filter -e input.bmp output.bmp

To-Do

  • Write a help option.
  • Write a function/script to check the compatibility of the image to be converted.

About

Few filters for 24-bit uncompressed bitmap images.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published