Using Spatial Filters in the Frequency Domain
3 views (last 30 days)
Show older comments
1. Download the following image "two_cats.jpg" and store it in MATLAB's "Current Directory".
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168920/image.jpeg)
2. Load the image data. 3. Create a spatial filter to get the horizontal edge of the image 4. Create a spatial filter to get the vertical edge of the image (read the MATLAB documentation of fspecial). 5. Transform both of these filters to the frequency domain. 6. Transform the two_cats image to the frequency domain 7. Apply the appropriate operations in the frequency domain 8. Transform the data back into the spatial domain 9. Sum the horizontal and vertical edge components together 10. The resulting image should look like this:
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!