MATLAB: How to find x y coordinates of detected blobs

blobs find x yImage Processing Toolbox

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.

Best Answer

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.