Designing filter
Show older comments
I want to design a filter that can recognize objects of a particular shape e.g round shape, within an image and then return a high pixel value at each spot where it identifies an object. Any help would be appreciated.
Answers (1)
Vidhi Agarwal
on 9 Jun 2025
Edited: Vidhi Agarwal
on 9 Jun 2025
0 votes
I understand that you want to design a filter, that can recignize objects of a particular shape within an image anf then return a high pixel value at each spot where it identifies an object. Below steps can help you in getting started:
- Preprocess the image
- Detect round objects using "imfindcircles" (Hough transform) or circularity-based filtering with "regionprops".
- Mark locations in output image
To understand more about "imfindcircles" refer to the following documentation: https://www.mathworks.com/help/images/ref/imfindcircles.html and for "regionprops" refer https://www.mathworks.com/help/images/ref/regionprops.html
Hope this helps!.
Categories
Find more on Image Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!