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.
Call bwconvhull() before you call bwlabel() or bwconncomp(). That will join the two blobs and create just one giant blob, which, of course, will have just one bounding box.
Best Answer