Skip to content

PARTH-1712/Image-Enhancement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Here's a comprehensive README file for the Image-Enhancement project.


Image Enhancement

This repository contains an implementation of various image enhancement techniques. The project aims to improve the visual quality of images using different algorithms and methods.

Table of Contents

Introduction

Image enhancement is a process of improving the visual quality of an image. It involves various techniques and algorithms to enhance the image's appearance, making it more suitable for specific applications. This project includes several methods for enhancing images, such as contrast adjustment, noise reduction, and sharpening.

Features

  • Contrast Enhancement: Improve the contrast of images using techniques like histogram equalization.
  • Noise Reduction: Reduce noise in images using filters such as Gaussian and median filters.
  • Sharpening: Enhance the edges and details in images.
  • Color Correction: Adjust the color balance of images.
  • Brightness and Saturation Adjustment: Modify the brightness and saturation levels of images.

Installation

To get started with this project, follow these steps:

  1. Clone the repository:
    git clone https://github.com/PARTH-1712/Image-Enhancement.git
  2. Navigate to the project directory:
    cd Image-Enhancement
  3. Install the required dependencies:
    pip install -r requirements.txt

Usage

Once the project is set up, you can use the provided scripts to enhance your images. Below are some examples of how to use the different enhancement techniques.

Contrast Enhancement

from enhancement.contrast import enhance_contrast

image_path = 'path_to_image.jpg'
enhanced_image = enhance_contrast(image_path)
enhanced_image.show()

Noise Reduction

from enhancement.noise_reduction import reduce_noise

image_path = 'path_to_image.jpg'
denoised_image = reduce_noise(image_path)
denoised_image.show()

Sharpening

from enhancement.sharpen import sharpen_image

image_path = 'path_to_image.jpg'
sharpened_image = sharpen_image(image_path)
sharpened_image.show()

Brightness and Saturation Adjustment

from enhancement.adjustments import adjust_brightness, adjust_saturation

image_path = 'path_to_image.jpg'
brightness_adjusted_image = adjust_brightness(image_path, factor=1.2)
saturation_adjusted_image = adjust_saturation(image_path, factor=1.5)
brightness_adjusted_image.show()
saturation_adjusted_image.show()

Examples

Below are some examples of images before and after enhancement.

Original Image

Original

Enhanced Image

Enhanced

Contributing

We welcome contributions to this project. To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-branch-name.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin my-branch-name.
  5. Submit a pull request.

Contact

If you have any questions or feedback, feel free to contact us at [email protected].


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published