How to find x y coordinates of detected blobs

조회 수: 4 (최근 30일)
Nuwan Dassanayake
Nuwan Dassanayake 2013년 9월 16일
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) .
Nuwan Dassanayake
Nuwan Dassanayake 2013년 9월 23일
Thank You Sir It has worked !

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by