Here's a comprehensive README file for the Image-Enhancement project.
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.
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.
- 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.
To get started with this project, follow these steps:
- Clone the repository:
git clone https://github.com/PARTH-1712/Image-Enhancement.git
- Navigate to the project directory:
cd Image-Enhancement
- Install the required dependencies:
pip install -r requirements.txt
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.
from enhancement.contrast import enhance_contrast
image_path = 'path_to_image.jpg'
enhanced_image = enhance_contrast(image_path)
enhanced_image.show()
from enhancement.noise_reduction import reduce_noise
image_path = 'path_to_image.jpg'
denoised_image = reduce_noise(image_path)
denoised_image.show()
from enhancement.sharpen import sharpen_image
image_path = 'path_to_image.jpg'
sharpened_image = sharpen_image(image_path)
sharpened_image.show()
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()
Below are some examples of images before and after enhancement.
We welcome contributions to this project. To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-branch-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin my-branch-name
. - Submit a pull request.
If you have any questions or feedback, feel free to contact us at [email protected].