Skip to content

rupav/Histogram-Equalization

Repository files navigation

Image-Histogram-Equalizaion

This repository is for implementation of Histogram Equalization for its application in the field of Machine Learning, AI, NeuralNets etc.!

We often come across images whose contrast is not good enough for visualizing or using in Machine Learning classification tasks. So to enhance brightness/contrast I have used the technique called Global Histogram Equalization.

# Gloabal Histogram Equalization on Colored Image!

## Original Image to work On Original Image

## Histogram of intensities of input Image input Histogram of Image

## Histogram of intensities of Transformed Image Transformed Image Histogram

See how our transformation function distributed the pixel counts to different bins(or intensities) evenly!

Thats what GHE is all about

## Projecting transformed histogram into the original image! GHE transformed Image

See the difference... Better contrast than original!

# Conclusion!

Result

## As we can see, GHE on RGB image directly provided better result on this image. ## Otherwise YCbCr image should have provided better result on coloured image.