How to apply highpass filter on image in Matlab??

I need to apply highpass filter on image, Is there a function in Matlab to apply highpass filter on the image??

 Risposta accettata

Try imfilter() function.
B = imfilter(A,h) filters the multidimensional array A with the multidimensional filter h and returns the result in B.
Refer to the following documentation link on imfilter function:
Hope this helps.

5 Commenti

Thanks alot for your answer.. I think that it will help but how to make "h" as a highpass filter??
i know that to create a filter we should use " h = fspecial(type)" but i don't know which type should we use to make "h" as a highpass filter to be able to use it in "imfilter"
Refer to the following link to know more about which type to use in fspecial() function.
yes I know but i don't know which type of the following can be used as a highpass filter
Capture.PNG
yeah I have the exact same question
The 'laplacian' and laplacian-of-gaussian ('log') filters are both high-pass filters. The laplacian of gaussian filter may help reduce the response to image noise.

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by