How to compare two different binary images

5 views (last 30 days)
I have the cropped image of pencil. I want to count the number of pencils in an image where each pencil can be of different sizes. How can I compare and count? How can I iterate and find? Do i need to zoom/shrink or correlate ? Please guide me with sample code or materials or steps to follow. Thanks.

Answers (1)

Walter Roberson
Walter Roberson on 5 Jan 2018
https://www.mathworks.com/discovery/object-detection.html
https://www.mathworks.com/matlabcentral/answers/329297-detecting-objects-by-template

Community Treasure Hunt

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

Start Hunting!