Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 7 : Display the results of the edge - detection filtering: a ) Display the edge - detection filtered image ( Sobel filter )

Exercise 7: Display the results of the edge-detection filtering:
a) Display the edge-detection filtered image (Sobel filter) processed in the spatial domain.
b) Display the edge-detection filtered image (Sobel filter) processed in the frequency domain.% create the spacial filtered image
h1= fspecial('sobel');
spacial_filtered = imfilter(double(cman), h1,0, 'conv');
figure(1); imshow(abs(spacial_filtered),[])
%%
PQ = size(cman);
CMAN = fft2(double(cman));
H1= fft2(double(h1),PQ(1), PQ(2));
F_CMAN = H1.*CMAN;
ffi = ifft2(F_CMAN);
figure(2); imshow(abs(ffi),[])
Results:
After loading the 'cameraman.tif', display the results of the average filtering:
a) Display the average filtered image ('average' filter with size=5) processed in the spatial domain.
b) Display the average filtered image ('average' filter with size=5) processed in the frequency domain.
Code for Results A and B
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago