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.
- 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.
Original Image:
./filter -g input.bmp output.bmp
$ ./filter -r input.bmp output.bmp
$ ./filter -b input.bmp output.bmp
$ ./filter -e input.bmp output.bmp
- Write a help option.
- Write a function/script to check the compatibility of the image to be converted.