Basic-Image-Processing
Basic-Image-Processing copied to clipboard
Implementation of Basic Digital Image Processing Tasks in Python / OpenCV
Basic Digital Image Processing Tasks
This repository contains basic implementations of image processing algorithms in python.
Required Libraries
- PIL
$ pip install pillow
- opencv-python
$ pip install opencv-python
Algorithms
Gradient
$ python gradient.py
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
$ python Segmentation.py
Original | Segmented |
---|---|
![]() |
Centroid
$ python Centroid.py
Original | Centroid | ||||||||
---|---|---|---|---|---|---|---|---|---|
![]() |
|
Connected Component Labelling
$ python ccl4.py
Original | CCL4 Labelled |
---|---|
![]() |
![]() |
Histogram Equalization
$ python hist_eq.py
Original | Histogram Equalized |
---|---|
![]() |
![]() |
Local Histogram Analysis
Original | Local Histogram |
---|---|
![]() |
![]() |
Morphology
$ python Simple.py
Original | Morphology | ||||||||
---|---|---|---|---|---|---|---|---|---|
![]() |
|
Sharpening
$ python sharpen.py
Original | Sharpened |
---|---|
![]() |
![]() |
Skeletonization
$ python Skeletonization.py
Smoothing
$ python AvergingFilter.py
Original | Averaging Filter |
---|---|
![]() |
![]() |
$ python gaussian.py
Original | Gaussian |
---|---|
![]() |
![]() |
$ python unsharp_masking.py
Original | Unsharp Masking |
---|---|
![]() |
![]() |
$ python median.py
Original | Median |
---|---|
![]() |
![]() |
XY Cuts
$ python XY_Cuts.py
Original | XY Cuts |
---|---|
![]() |
![]() |
Template Matching
$ python TemplateMatching.py
Template | Matched in Image |
---|---|
![]() |
![]() |