How to find x y coordinates of detected blobs
Show older comments
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.
Accepted Answer
More Answers (1)
Nuwan Dassanayake
on 16 Sep 2013
0 votes
5 Comments
Nuwan Dassanayake
on 17 Sep 2013
Image Analyst
on 17 Sep 2013
xy = [stats.Centroid];
x = xy(:,1);
y = xy(:,2);
Nuwan Dassanayake
on 20 Sep 2013
Edited: Nuwan Dassanayake
on 20 Sep 2013
Image Analyst
on 20 Sep 2013
You can't do things like a<x<b you need to do (a<x) && (x<b) .
Nuwan Dassanayake
on 23 Sep 2013
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!