Find nearest pixel to same for each pixel list given by regionprops for each object

2 views (last 30 days)
Hello! I have a pixellist for each object given by regionprops and i want to calculate the nearest point and then distance all to the same binary map/object for each object.
Thanks!
  2 Comments
Matt J
Matt J on 30 Jul 2021
Edited: Matt J on 30 Jul 2021
If a pixel belongs to an object, its distance to the same object is zero, of course...
Image Analyst
Image Analyst on 31 Jul 2021
I agree with Matt. Please explain what you mean, preferably with a diagram showing the distances and blobs that you're talking about. Perhaps you mean the distance of every blob centroid to every other blob centroid like you'd get with pdist2()???

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!