Basic Digital Image Processing Tasks
This repository contains basic implementations of image processing algorithms in python.
-
Hi there, I'm Bibhuti Bhusan Sahoođź‘‹
![Website](https://camo.githubusercontent.com/64866283e6c4bbc9b0a10a5eba57fa57fc3a5ec499171376d37ee8da3428b086/68747470733a2f2f696d672e736869656c64732e696f2f776562736974653f6c6162656c3d4269626875746935267374796c653d666f722d7468652d62616467652675726c3d6874747073253341253246253246636f6465737461636b722e636f6d)
![Twitter Follow](https://camo.githubusercontent.com/4ee96d3dcfc3f16778c3d44e8c1333bc61402488d6913dfb215cf0deeda9e82e/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f4269626875746935323637353938333f636f6c6f723d314441314632266c6f676f3d74776974746572267374796c653d666f722d7468652d6261646765)
![Medium Follow](https://camo.githubusercontent.com/a5f630c0189be0cf478fb4f1fcb9aa1acd9d0eb18a19cd22c3ed18f0def9e3ee/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f4269626875746935323637353938333f636f6c6f723d314441314632266c6f676f3d6d656469756d267374796c653d666f722d7468652d6261646765)
![Website](https://camo.githubusercontent.com/d7bb6ac271f17d60bcc9ca72262d6592828fd97040b3eec809926e80199951a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576562736974652d484f4e474f55542d79656c6c6f77)
$ pip install opencv-python
Original |
Gradient |
![Gradient-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Gradient/lena.jpg?raw=true) |
![Gradient-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Gradient/gradient.jpg?raw=true) |
$ python negative.py binary.jpeg binary
Original |
Binary Negative |
![Binary-Negative-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/binary.jpg?raw=true) |
![Binary-Negative-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/binary_inverted.png?raw=true) |
$ python negative.py lena.jpg gray
Original |
Grayscale Negative |
![Gray-Negative-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/grayscale.png?raw=true) |
![Gray-Negative-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/grayscale_inverted.png?raw=true) |
$ python negative.py lena.jpg rgb
Original |
RGB Negative |
![Rgb-Negative-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/rgb.jpg?raw=true) |
![Rgb-Negative-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Negative/rgb_inverted.png?raw=true) |
Original |
Segmented |
![Segmented-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Segmentation/image.png?raw=true) |
![Segmented-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Image%20Segmentation/Capture3.PNG?raw=true) |
Original |
Centroid |
![Centroid-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Centroid/Signature.png?raw=true) |
Top Left | Top Right | ![Centroid-TopLeft](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Centroid/TopLeft.png?raw=true) | ![Centroid-TopRight](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Centroid/TopRight.png?raw=true) | Bottom Left | Bottom Right | ![Centroid-BottomLeft](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Centroid/BottomLeft.png?raw=true) | ![Centroid-BottomRight](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Centroid/BottomRight.png?raw=true) |
|
Connected Component Labelling
Original |
CCL4 Labelled |
![CCL4-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Connected%20Component%20Labelling/input.png?raw=true) |
![CCL4-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Connected%20Component%20Labelling/ccl.png?raw=true) |
Original |
Histogram Equalized |
![Hist-eq-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Histogram%20Equalization/hist2.jpg?raw=true) |
![Hist-eq-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Histogram%20Equalization/high_contrast.png?raw=true) |
Original |
Local Histogram |
![Local-Hist-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Local%20Histogram%20Analysis/mountains.jpg?raw=true) |
![Local-Hist-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Local%20Histogram%20Analysis/high_contrast_local_img.png?raw=true) |
Original |
Morphology |
![Morphology-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Morphology/signature.png?raw=true) |
Erosion | Dilation | ![Erosion](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Morphology/erosion.png?raw=true) | ![Dilation](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Morphology/dilation.png?raw=true) | Opening | Closing | ![Opening](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Morphology/opening.png?raw=true) | ![Closing](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Morphology/closing.png?raw=true) |
|
Original |
Sharpened |
![Sharpened-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Sharpening/inp1.jpg?raw=true) |
![Sharpened-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Sharpening/sharpen.jpg?raw=true) |
$ python Skeletonization.py
![Skeletionization](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Skeletonization/output.png?raw=true)
$ python AvergingFilter.py
Original |
Averaging Filter |
![Averaging-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/inp1.jpeg?raw=true) |
![Averaging-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/averaging.jpg?raw=true) |
Original |
Gaussian |
![gaussian-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/inp1.jpeg?raw=true) |
![gaussian-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/gaussian.jpg?raw=true) |
$ python unsharp_masking.py
Original |
Unsharp Masking |
![Unsharp-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/inp2.jpeg?raw=true) |
![Unsharp-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/unsharp_masking.jpg?raw=true) |
Original |
Median |
![Unsharp-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/inp3.jpeg?raw=true) |
![Unsharp-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Smoothing/median.jpg?raw=true) |
Original |
XY Cuts |
![XY-Original](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/XY_Cuts/XY-cuts.png?raw=true) |
![XY-Result](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/XY_Cuts/xycut.png?raw=true) |
$ python TemplateMatching.py
Template |
Matched in Image |
![Template](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Template%20Matching/template.png?raw=true) |
![MatchedTemplate](https://github.com/mohammaduzair9/Basic-Digital-Image-Processing/raw/master/Template%20Matching/matchedTemplate.png?raw=true) |