**
This repository contains various image processing techniques implemented using OpenCV and Matplotlib in Python. The techniques include pixel value extraction, image rotation, resizing, cropping, blurring, edge detection, and more.
- Python 3.x
- OpenCV
- NumPy
- Matplotlib
You can install the necessary libraries using pip:
pip install opencv-python-headless numpy matplotlib
-
Extracting Pixel Values and Color Space
- Load and display an image.
- Print pixel values and color space (BGR).
-
Rotating the Image
- Rotate the image by 90 degrees.
- Rotate the image with new dimensions while keeping the image center.
-
Resizing the Image
- Resize the image to a specified size.
-
Cropping the Image
- Crop a specific region of the image.
-
Blurring the Image
- Apply a blur effect using a 5x5 kernel.
-
Converting the Image to Grayscale and Detecting Edges
- Convert the image to grayscale.
- Detect edges using the Canny edge detection algorithm.
-
Fourier Transform
- Compute the Fourier transform of the image.
- Display the magnitude spectrum.
-
Hough Transform for Line Detection
- Perform edge detection and detect lines using the Hough transform.
-
Hough Transform for Circle Detection
- Detect circles in the image using the Hough transform.
-
Morphological Transformations
- Perform dilation and erosion on the image.
-
Thresholding
- Apply binary thresholding to the image.
To run the scripts, use the following command:
python image_processing_with_opencv.py
This project is licensed under the MIT License - see the LICENSE file for details. **