This project contains examples of some of the common operations performed in grayscale image in digital image processing. I created this project while studying Image Processing and Pattern Recognition during my undergraduate degree.
The examples included here are only applicable for grayscale images. They may not / should not work for color images.
- Digital Negative
- Bit Plane Slicing
- Logarithmic Transformation
- Gamma Transformation
The project is written in Python so you need to have python installed in your system. If you dont have python installed in your system, download python from here: https://www.python.org/downloads.
Next, you need to have OpenCV library installed in your system. The easiest way to do so is:
$ pip install opencv-python
Once you are done, clone this repository and then open the terminal in the root directory to type command :
$ python main.py
The /images
directory contains some of the sample grayscale images that you can try operations on. But first, you need to copy the photo and bring it to the root directory, and then rename it to image.jpg
. You can even download your own grayscale image and try operations on them.