Filter löschen
Filter löschen

spatial filtering on image

2 Ansichten (letzte 30 Tage)
Ali am 20 Okt. 2014
Beantwortet: Mann Baidi am 6 Dez. 2023
load the image and apply prewitt filter and sobel filter

Antworten (1)

Mann Baidi
Mann Baidi am 6 Dez. 2023
Hi Ali,
I understand you would like to apply Sobel” and "Prewitt” filter on an image. I would suggest you use the “edge” function in MATLAB. For using the function, you will require the Image Processing Toolbox.
I = imread('coins.png');
BW1 = edge(I,"sobel");
BW2 = edge(I,'prewitt');
title('Sobel Filter')
title('Prewitt Filter')
You can refer to the edge function documentation using the following link.
Hope this will help in resolving the issue!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by