Getting X,Y coordinates and width,height of objects in an Image

4 次查看(过去 30 天)
Hi,
I suppose to identify exact location(x,y) and width,height of objects in an image.
Say, there is an image and it contains circles, squares inside it, I need to identify x,y coordinates and width,height of these objects(shapes)separately.
Is there a function to achieve this?
Can anyone provide me some guidance please?

回答(1 个)

Sean de Wolski
Sean de Wolski 2011-6-10
doc bwconncomp
doc regionprops

Community Treasure Hunt

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

Start Hunting!

Translated by