Pillow Image Enhancer(PIE) is a simple image enhancement tool that allows
to carry out some basic intensity transformations and spatial filtering.
PIE only deals with Gray Level Images.Therefore any image other than a gray-level
image shall be first transformed into the gray-level image prior to any processsing
begins.
Pillow Image Enhancer(PIE) provides three basic image enhancement techniques:
1.Some Basic Gray Level Transformations
i. Thresholding
ii. Digital Negative
iii. Intensity Level Slicing
iv. Bit Plane Slicing
v. Histogram Processing
2.Some Basic Spatial Filters
i. Box Filter
ii. Gaussian Filter
iii. Median Filter
iv. Unsharp Masking
3.Some Basic Image Interpolation techniques
i. Nearest Neighborhood Interpolation
ii. Bilinear Interpolation
iii. Bicubic Interpolation
i. Python 3.12+
ii. PIL 11.0.0 (Python Imaging Library)
iii. fortune-python 1.1.1
( Only if you want to have some good message at the end of your tasks !)
iv.Terminal or IDE of your choice
The installation steps aside from step 1 and step 2 should be same in all environments.The following
lines of codes are for Ubuntu 24.04
1.Install Python 3.12+ on your machine.
sudo apt update
sudo apt install python3
2.Install pip
sudo apt install python3-pip
3.Create a virtual environment using python3 -m venv path/to/venv.
python3 -m venv MyVirtualEnv
cd MyVirtualEnv
4.Clone this repository
git clone https://github.com/slackuj/Pillow_Image_Enhancer.git
cd Pillow_Image_Enhancer
5.Activate the virtual environment (this will be handy !!!)
source ../bin/activate
assuming you are inside Pillow_Image_Enhancer directory that was cloned at step 4.
6.Install the required modules
pip install pillow
pip install matplotlib
pip install fortune-python
You can now use Pillow Image Enhancer(PIE) to enhance your images.The output of the images shall be
stored in the same project directory inside a new sub-directory 'output'.
python project.py shlokpal.jpg
Provide the prompt as you want to carryout the processing.
You can quit the program by simply typing 'quit' at any input prompt.
Please report any bugs and issues here in this repository or to slackuj@gmail.com.