EdwinSanFI / Histogram-Equalization

Adjust the contrast of images using histogram equalization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ“ธ Histogram Equalization ๐Ÿ“ธ

This project showcases the implementation of the histogram equalization method using C and Python. The method is a popular technique for improving image contrast by redistributing pixel intensity values. This demo includes visualizations created with Matplotlib to display the differences in image contrast before and after applying the histogram equalization method.

Introduction

Histogram equalization is an image processing technique used to enhance the contrast of an image by equalizing its intensity distribution. It does this by spreading out the most frequent intensity values, making the image histogram more uniform. This results in an image with improved contrast and enhanced details in both bright and dark regions.

Histogram equalization is a method in image processing of contrast adjustment using the image's histogram.

Table of Contents

Getting started

To run the demo, follow these steps:

  1. Clone the repository to your local machine:
git clone https://github.com/yourusername/histogram-equalization-demo.git
  1. Change into the project directory:
cd histogram-equalization-demo
  1. Install the required Python dependencies:
pip install -r requirements.txt
  1. Compile the C implementation:
gcc -o equalization histogram_equalization.c
  1. Run the Python script with the desired input image:
python histogram_equalization.py input_image.jpg
  1. View the generated output images and histogram visualizations in the output folder.

Image 1 grayscale

Image 2 grayscale

Image 3 grayscale

Image 4 grayscale

Image 1 RGBscale

Image 2 RGBscale

Image 3 RGBscale

Learn More

To learn more about histogram equalization and image processing techniques, check out the following resources:

Contributions & Feedback ๐Ÿ’ฌ

I appreciate any feedback and suggestions to improve my projects, as well as contributions to the code. Feel free to create an issue or submit a pull request if you'd like to contribute.

Connect With Me ๐Ÿค

If you have any questions, want to discuss ideas or just want to connect, feel free to reach out to me on LinkedIn, GitHub, Twitter, Instagram.

Thank you for visiting my Histogram Equalization repository, and I hope you enjoy learning! ๐Ÿ˜ƒ

About

Adjust the contrast of images using histogram equalization.

License:MIT License


Languages

Language:C 96.5%Language:C++ 3.5%Language:Python 0.1%Language:Makefile 0.0%Language:Batchfile 0.0%