Hi, David,<div>        What about a itkFastMarchingImageFilter with mask image(removing background). Define one pixel in white as the initial trial point. The level set value of another pixel is the geodesic distance? </div>
<div><br></div><div><br></div><div>regards</div><div><br></div><div>wanlin<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 11:26 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have an image consisting of a black background and white foreground pixels. I want to know the shortest distance from one white pixel to another white pixel on a path constrained to only touch white pixels.<div>
<br></div>
<div>As an example, if the image is of the outline of a circle, the distance from a point on the circle to a point directly across the diameter should be half of the circumference, rather than the diameter.<br clear="all">

<br></div><div>Is there something built in to do this?</div><div><br></div><div>Thanks,<br><br>David<br>
</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>