How do I use a highpass filter?

2 visualizaciones (últimos 30 días)
Esa Soudbakhsh
Esa Soudbakhsh el 31 de En. de 2021
Respondida: Sindhu Karri el 4 de Feb. de 2021
I don't see any option to do so with the fspecial() function. I looked at the information of highpass() on mathworks and I was confused about the inputs. So far I have this and it produces an error.
A = imread('landscape.jpg');
B = imresize(A, [256 256], 'Antialiasing', true);
E = highpass(1, pi/2);
G = imfilter(B, E);
imshow(G);

Respuestas (1)

Sindhu Karri
Sindhu Karri el 4 de Feb. de 2021
Hii,
For 'highpass' function the parameters to be passed should be normalised so highpass(0,0.5) won't be producing an error
Refer to link:
you can also refer to the below link for additional information on applying highpass filter to an image

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by