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!.
