<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif"><small>Hi Kevin,<br>
<br>
Assuming your image is binary (either 'on', or 'off'), I think the <font
face="Courier New, Courier, monospace">FastMarchingImageFilter</font></small><small>
</small></font><font face="Helvetica, Arial, sans-serif"><small>will do
this for you:
<a class="moz-txt-link-freetext"
href="http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingImageFilter.html</a><br>
<br>
Create a speed image from your binary image (off = 0.0, on = 1.0), add
a trial point at the desired location, and run the filter. The result
will be the time-crossing map (note that all values outside of the
speed image (0.0) will receive a huge value, so you will have to do a
threshold at the end). The<font face="Courier New, Courier, monospace">
FastMarchingImageFilter</font> is also in the software guide around
section 9.3.1.<br>
<br>
HTH, Dan<br>
</small><br>
</font><br>
Kevin H. Hobbs wrote:
<blockquote cite="mid1177443998.3779.37.camel@gargon.hooperlab"
type="cite">
<pre wrap="">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 |
| |
-------------------
</pre>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
Insight-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
<a class="moz-txt-link-freetext"
href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font color="Gray" face="Arial" size="2">
Dan Mueller<br>
PhD Candidate (02562065)<br>
School of Engineering Systems (ES)<br>
Faculty of Built Environment and Engineering (BEE)<br>
Queensland University of Technology (QUT)<br>
CRICOS No: 00213J<br>
<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:d.mueller@qut.edu.au">d.mueller@qut.edu.au</a><br>
Phone: +617 3864 9124<br>
Mobile: +61 0401 451 850<br>
Room: Gardens Point S903.10<br>
</font>
</div>
</body>
</html>