Digital Image Processing deals with analysis and manipulation of 'Digitized Images'. This repository contains programs to show basic image processing tasks.
- Install Python
- Download and install Pillow for Python
The above gray scale image is used for image processing, color images can also be used.
- Add pixel value : To every pixel a constant value is added.
- Image Negative : Each pixel value of the input image is subtracted from the 255(2^8 - 1) and mapped onto the output image. As a result, darker pixels become light and ligter become dark.
- Log Transformation : The log transformations uses the following equation:
new pixel = c ∗log(old pixel +1)
where c is a constant. - Power Law Transformation : The general form of Power law (Gamma) transformation function is :
new pixel = s = c*power(old pixel, gamma)
where c and gamma are constants.