How to find x y coordinates of detected blobs

3 次查看(过去 30 天)
Dear All,
Do you know how to find the center coordinate of a blob. That means after detected blobs i need to assign variables to that blob locations.

采纳的回答

Image Analyst
Image Analyst 2013-9-16
You need to ask regionprops for the Centroid or Weighted Centroid. See my Image Segmentation Tutorial for an example: Image Analyst's File Exchange It does exactly that.

更多回答(1 个)

Nuwan Dassanayake
Nuwan Dassanayake 2013-9-16
Dear Image Analyst Thank You very much for help!
  5 个评论
Image Analyst
Image Analyst 2013-9-20
You can't do things like a<x<b you need to do (a<x) && (x<b) .

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Language Support 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by