For a color image, convert RGB to Grayscale and find the edges using the following operators:
- Prewitt Operators.
- Sobel Operators.
- Use of a smoothing filter (averaging filter) with the Sobel operator.
This MATLAB script performs the following tasks:
- Converts a color image to grayscale.
- Detects edges using Prewitt and Sobel operators.
- Applies a smoothing filter before Sobel edge detection.
- Allows users to upload an image interactively for processing.
- Clone or download this repository to your local system.
- Ensure MATLAB (R2020b or later) and the Image Processing Toolbox are installed.
- Run the script
edge_detection.m
in MATLAB. - When prompted, select an image file to process (supported formats:
.jpg
,.png
,.bmp
).
- MATLAB R2020b or later.
- Image Processing Toolbox.
- Save the file as
edge_detection.m
. - Run the script in MATLAB.
- Follow the prompts to upload an image for edge detection.
Rahul Patel
Electronics and Communication Engineering Student
Date: January 19, 2025