Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/university-experience/imageprocessing-filtering

Apply some filters using opencv, numpy, matplitlib python libraries.
https://github.com/university-experience/imageprocessing-filtering

Last synced: 1 day ago
JSON representation

Apply some filters using opencv, numpy, matplitlib python libraries.

Awesome Lists containing this project

README

        

![Image_Processing_with_Gamma_Correction_!](https://github.com/BaraSedih11/ImageHW1/assets/98843912/7417fe86-11a0-46b9-866e-7172ba99febb)

![GitHub repo size](https://img.shields.io/github/repo-size/BaraSedih11/ImageHW1) ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/BaraSedih11/ImageHW1) ![NPM Version](https://img.shields.io/npm/v/npm)

## Overview
This project demonstrates basic image processing techniques, focusing on gamma correction. The script utilizes the OpenCV library to read an image, convert it to grayscale, and apply gamma correction. Gamma correction is a non-linear adjustment to the intensity values of an image, often used to correct for the nonlinear relationship between pixel intensity and perceived brightness.

## Requirements
- Python 3
- OpenCV (`cv2`)
- NumPy
- Matplotlib

Install the required libraries using the following command:

![carbon (2)](https://github.com/BaraSedih11/ImageHW1/assets/98843912/f67d59d0-a313-42ba-b093-85d1a20f3dcb)

## Usage
![carbon (1)](https://github.com/BaraSedih11/ImageHW1/assets/98843912/73f57c77-97fc-4661-8032-4a5239cb9770)

![carbon (3)](https://github.com/BaraSedih11/ImageHW1/assets/98843912/cf8f11b6-6927-4acd-9424-2b43f1792747)

## Functionality

**Display Original Image**
Reads an image from the specified file path.
Displays the original image.

**Convert to Grayscale**
Converts the original image to grayscale.
Displays the grayscale image.

**Histogram**
Computes and displays the histogram of the grayscale image.
Shows the distribution of pixel intensities.

**Gamma Correction**
Applies gamma correction to the grayscale image using both a look-up table (LUT) and manual pixel-wise modification.
Displays the gamma-corrected images.

**Execution Times**
Prints the execution times for gamma correction using a look-up table and manual pixel-wise modification.

**Histograms of Processed Images**
Displays histograms of the original image and the gamma-corrected images for visual comparison.

## Documentation
https://github.com/BaraSedih11/ImageHW1/wiki