<div class="gmail_extra">Thanks Brad for your relpy. But I dont have any problem with my contours thay are connected and close and I dont want to fill the inside as I want to have negative distance in this region.</div>
<div class="gmail_extra">Anna<br><br></div>
<div class="gmail_quote">On Thu, Apr 26, 2012 at 1:50 PM, Bradley Lowekamp <span dir="ltr">&lt;<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div style="WORD-WRAP:break-word">Have you looked at filling the wholes caused by you contours with an algorithm such as BinaryFillholeImageFilter or a RegionGrowing methods? This hopefully will make the image compliant with the expected input to the signed distance function. 
<div><br></div>
<div>Brad<br>
<div><br></div>
<div><br>
<div>
<div>
<div class="h5">
<div>On Apr 26, 2012, at 8:13 AM, anna han wan wrote:</div><br>
<blockquote type="cite">
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">Hi </font></font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">I am using SignedMaurerDistanceMapImageFilter to compute the distance map of my 3D images in which I have shapes like empty spheres and cubes(only the contour).</font></font></p>

<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">My question is similar to the question asked in </font><a href="http://www.itk.org/pipermail/insight-users/2007-September/023496.html" target="_blank"><font size="3" face="Calibri">http://www.itk.org/pipermail/insight-users/2007-September/023496.html</font></a><font size="3"><font face="Calibri">.</font></font></p>

<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">I want to have negative distance values inside the sphere and positive outside the sphere knowing that I don’t want to fill in my contour.</font></font></p>

<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">Is there any way to do that?</font></font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">Also what’s the role of function setInsideIsPositive ? can you give me more explanation that the one provided <span> </span>in the class number definition? </font></font></p>
</blockquote></div></div>
<div>I believe this toggles when the inside is positive, and the outside negative and visa versa.</div><br>
<blockquote type="cite">
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">Thanks</font></font></p>
<p style="MARGIN:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri">Anna.</font></font></p>_____________________________________<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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></blockquote></div><br>
<div><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:12px Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<div style="WORD-WRAP:break-word"><span style="TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:12px Helvetica;WHITE-SPACE:normal;LETTER-SPACING:normal;WORD-SPACING:0px">
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica">========================================================</font></p>
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica">Bradley Lowekamp<span> </span><span> </span></font></p>
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica">Medical Science and Computing for</font></p>
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica">Office of High Performance Computing and Communications</font></p>
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica">National Library of Medicine<span> </span></font></p>
<p style="MARGIN:0px"><font style="FONT:12px Helvetica" size="3" face="Helvetica"><a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a></font></p><br></span></div></span></span><br></div><br>
</div></div></div></blockquote></div>
<div class="gmail_extra"><br></div>