can anyone help to solve this

Load the image ‘coins.png’ and use the function regionprops to find the area and coordinates of each of the coins. Also display the area of the largest coin.(in matlab)

Answers (1)

KSSV
KSSV on 4 Apr 2019
It is a straight away demo in documentation. https://in.mathworks.com/help/images/ref/regionprops.html

6 Comments

ha
ha on 4 Apr 2019
Edited: ha on 4 Apr 2019
i have already tried all these methds
Good....
but nothing work properly according to my requirements
Show us the code you have tried.....
hh=imread('coins.png');
h1=imshow(hh);
s = regionprops(hh,'Area','BoundingBox');
[~,max_coin_idx] = max([s.Area]);
actually im new in matlab and not understanding what to do

Sign in to comment.

Asked:

ha
on 4 Apr 2019

Commented:

ha
on 4 Apr 2019

Community Treasure Hunt

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

Start Hunting!