[Insight-users] Distance to point in connected object

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Apr 24 15:46:38 EDT 2007


Is there any way to tell how far the pixels of an object are from a
point within that object without the path leaving the object? I don't
mean "as the crow flies" but following roads.

I know that's a sort of a bad description maybe some ASCII art will
help.

If I have a segmented image like this.

-------------------
|                 |
|         11      |
|          1      |
|    111   1      |
|   11111111111   |
|    111          |
|                 |
-------------------

I pick a point in the middle of the blob in the lower left. I want the
pixels relabeled like this.
-------------------
|                 |
|         98      |
|          7      |
|    212   6      |
|   21012345678   |
|    212          |
|                 |
-------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070424/8680fab8/attachment.pgp


More information about the Insight-users mailing list