<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Anchit,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I took a look at the <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/BinaryMathematicalMorphology/include/itkBinaryPruningImageFilter.hxx">source</a> code, and it does seem to be 2D-only.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default"><font face="verdana, sans-serif">Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 28, 2017 at 1:58 PM, Anchit Dhar <span dir="ltr"><<a href="mailto:Anchit.Dhar@mathworks.com" target="_blank">Anchit.Dhar@mathworks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5971678197936358507WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I have written a module to prune branches of a 3-D Skeleton using ITK’s
</span><span lang="EN" style="font-size:11.0pt">BinaryPruningImageFilter. The filter is returning unexpected pruned results for a 3-D skeleton input.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:11.0pt">The <a href="https://itk.org/Doxygen/html/classitk_1_1BinaryPruningImageFilter.html" target="_blank">
doxygen page</a> for the filter states that –<u></u><u></u></span></p>
<p style="line-height:16.5pt;background:white"><i><span style="font-size:9.0pt;font-family:"Lucida Grande",sans-serif;color:black">“The algorithm is the N-dimensional version of that given for two dimensions in: Rafael C. Gonzales and Richard E. Woods. Digital <a href="https://itk.org/Doxygen/html/classitk_1_1Image.html" title="Templated n-dimensional image class. " target="_blank"><b><span style="color:#4665a2;text-decoration:none">Image</span></b></a> Processing.
 Addison Wesley, 491-494, (1993).”<u></u><u></u></span></i></p>
<p style="line-height:16.5pt;background:white"><span style="font-size:9.0pt;font-family:"Lucida Grande",sans-serif;color:black">But, from the source code of
</span><span lang="EN">BinaryPruningImageFilter it appears that pruning is being performed considering 2-D neighbors only and hence does not support 3-D. Can someone please confirm this?<u></u><u></u></span></p>
<p style="line-height:16.5pt;background:white"><span lang="EN">Thanks.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p style="line-height:16.5pt;background:white"><span lang="EN">-Anchit<u></u><u></u></span></p>
<p style="line-height:16.5pt;background:white"><span lang="EN"><u></u> <u></u></span></p>
<p style="line-height:16.5pt;background:white"><span style="font-size:9.0pt;font-family:"Lucida Grande",sans-serif;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:11.0pt"><u></u> <u></u></span></p>
</font></span></div>
</div>

<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>