Basic Digital Image Processing Tasks
This repository contains basic implementations of image processing algorithms in python.
Required Libraries
$ pip install opencv-python
Algorithms
Gradient
Original |
Gradient |
|
|
Image Negative
$ python negative.py binary.jpeg binary
Original |
Binary Negative |
|
|
$ python negative.py lena.jpg gray
Original |
Grayscale Negative |
|
|
$ python negative.py lena.jpg rgb
Original |
RGB Negative |
|
|
Image Segmentation
Original |
Segmented |
|
|
Centroid
Original |
Centroid |
|
Top Left | Top Right | | | Bottom Left | Bottom Right | | |
|
Connected Component Labelling
Original |
CCL4 Labelled |
|
|
Histogram Equalization
Original |
Histogram Equalized |
|
|
Local Histogram Analysis
Original |
Local Histogram |
|
|
Morphology
Original |
Morphology |
|
Erosion | Dilation | | | Opening | Closing | | |
|
Sharpening
Original |
Sharpened |
|
|
Skeletonization
$ python Skeletonization.py
Smoothing
$ python AvergingFilter.py
Original |
Averaging Filter |
|
|
Original |
Gaussian |
|
|
$ python unsharp_masking.py
Original |
Unsharp Masking |
|
|
Original |
Median |
|
|
XY Cuts
Original |
XY Cuts |
|
|
Template Matching
$ python TemplateMatching.py
Template |
Matched in Image |
|
|