How I can detect this ball in the image

15 views (last 30 days)

Accepted Answer

jonas
jonas on 30 Jun 2018
Edited: Image Analyst on 30 Jun 2018

For circles you can simply use the imfindcircles function.

I=imread('crop.jpg');
imshow(I);hold on
[centers rr] = imfindcircles(I,[200 500],'sensitivity',0.99)
viscircles(centers,rr)

See attachment for result.

  4 Comments
stellarpranav
stellarpranav on 30 Jun 2018
I want to detect this ball, by template matching alogrithm rather than detecting it as a circle.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing and Computer Vision 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!