Skip to content

Latest commit

 

History

History
164 lines (128 loc) · 7.11 KB

README.md

File metadata and controls

164 lines (128 loc) · 7.11 KB

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
Gradient-Original Gradient-Result

Image Negative

$ python negative.py binary.jpeg binary
Original Binary Negative
Binary-Negative-Original Binary-Negative-Result
$ python negative.py lena.jpg gray
Original Grayscale Negative
Gray-Negative-Original Gray-Negative-Result
$ python negative.py lena.jpg rgb
Original RGB Negative
Rgb-Negative-Original Rgb-Negative-Result

Image Segmentation

$ python Segmentation.py
Original Segmented
Segmented-Original Segmented-Result

Centroid

$ python Centroid.py
Original Centroid
Centroid-Original
Top LeftTop Right
Centroid-TopLeftCentroid-TopRight
Bottom LeftBottom Right
Centroid-BottomLeftCentroid-BottomRight

Connected Component Labelling

$ python ccl4.py
Original CCL4 Labelled
CCL4-Original CCL4-Result

Histogram Equalization

$ python hist_eq.py
Original Histogram Equalized
Hist-eq-Original Hist-eq-Result

Local Histogram Analysis

Original Local Histogram
Local-Hist-Original Local-Hist-Result

Morphology

$ python Simple.py
Original Morphology
Morphology-Original
ErosionDilation
ErosionDilation
OpeningClosing
OpeningClosing

Sharpening

$ python sharpen.py
Original Sharpened
Sharpened-Original Sharpened-Result

Skeletonization

$ python Skeletonization.py

Skeletionization

Smoothing

$ python AvergingFilter.py
Original Averaging Filter
Averaging-Original Averaging-Result
$ python gaussian.py
Original Gaussian
gaussian-Original gaussian-Result
$ python unsharp_masking.py
Original Unsharp Masking
Unsharp-Original Unsharp-Result
$ python median.py
Original Median
Unsharp-Original Unsharp-Result

XY Cuts

$ python XY_Cuts.py
Original XY Cuts
XY-Original XY-Result

Template Matching

$ python TemplateMatching.py
Template Matched in Image
Template MatchedTemplate