This repository contains code for digital image processing using OpenCV. The provided code demonstrates various image processing techniques, including adding noise, applying filters, and removing noise from images.
-
main.py: This is the main Python script that uses OpenCV for digital image processing. It loads the image from the matrix file, applies noise filters, and performs other image processing operations.
-
matrix_file.txt: The matrix file contains the pixel values of the image. It serves as the input for the image processing script.
Follow these steps to get started with digital image processing:
-
Clone the repository to your local machine.
git clone https://github.com/Zilean12/DIGITAL-Image-Processing.git
-
Install the required dependencies.
pip install opencv-python
-
Run the
main.py
script to perform digital image processing.python main.py
The script adds different types of noise to the image, simulating real-world scenarios. You can modify the noise parameters in the script to experiment with different noise levels.
Various noise filtering techniques are applied to the image to reduce or eliminate the added noise. This includes commonly used filters such as Gaussian, Median, and Bilateral filters.
The script also demonstrates other image processing operations, such as resizing, grayscale conversion, and edge detection.
Feel free to modify the code to suit your specific image processing needs. Experiment with different filters, noise levels, and image processing techniques.
If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request. or by email id - aryan.sharma21@st.niituniversity.in
Happy image processing! 🌈📸