How to find the distance between two random selected blobs in an Image ?
Show older comments
Hi, i have couple of Images in which I need to find the distance between the selected two blobs in an image. I have used "ginput(2)" to select the two blobs in the image.
I have used the following attached code but facing some errors in it. I used few lines of code from matlabcentral and added it to my code.
I am getting error as -
Index exceeds matrix dimensions.
Error in meandistanceSample (line 53)
boundary2 = boundaries{2};
Here are the two Images that I need to analyze. Can any one help me.
Thanks...
Accepted Answer
More Answers (0)
Categories
Find more on Geometric Transformation and Image Registration 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!