<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Benedikt,</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 trust VTK's docs more than a comment near the filter's invocation. But you can easily test this by opening a highly anisotropic image (let's say Z spacing 10x greater than X and Y spacing) with some e.g. sharp edges and observing how the smoothing works.</div><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><br></div></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 9:18 AM, Beyer, Benedikt Alexander <span dir="ltr"><<a href="mailto:benedikt.beyer@rwth-aachen.de" target="_blank">benedikt.beyer@rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="blue" vlink="purple">
<div class="m_-8206631714797023791WordSection1">
<p class="MsoNormal"><span>Hi Dženan and Paul,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">thank you for the Information about the mesh smoothing algorithm, that helped a lot. Unfortunately I don’t completely understand the source code, since I’m not a software developer.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">In the source code you linked it says that the maximum error parameter is ignored, so I assume that the value in the program settings has no effect on the smoothing.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">(<a href="https://sourceforge.net/p/itk-snap/src/ci/master/tree/Logic/Mesh/VTKMeshPipeline.cxx#l169" target="_blank">https://sourceforge.net/p/<wbr>itk-snap/src/ci/master/tree/<wbr>Logic/Mesh/VTKMeshPipeline.<wbr>cxx#l169</a>)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">As for the sigma I still don’t entirely understand why the polygon model is not smoothed below a sigma of 0.67.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">In the preferences for ITK-SNAP at the 3D Rendering tab, there is a Gaussian image smoothing option. Activating this option will smooth the polygon model of a segmentation for sigma>=0.67.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Also in the source code and documentation there seems to be contradicting information, because in
<a href="https://gitlab.kitware.com/vtk/vtk/blob/master/Imaging/General/vtkImageGaussianSmooth.h" target="_blank">
vtkImageGaussianSmooth.h</a> sigma is in pixel units and in <a href="https://sourceforge.net/p/itk-snap/src/ci/master/tree/Logic/Mesh/VTKMeshPipeline.cxx#l166" target="_blank">
VTKMeshPipeline.cxx#l166</a> it is in millimeters. Which information relates to the 3D Rendering option?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Benedikt Beyer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Von:</b> Dženan Zukić [mailto:<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>] <br>
<b>Gesendet:</b> Dienstag, 30. Mai 2017 15:38<br>
<b>An:</b> Beyer, Benedikt Alexander <<a href="mailto:benedikt.beyer@rwth-aachen.de" target="_blank">benedikt.beyer@rwth-aachen.de</a><wbr>><br>
<b>Cc:</b> <a href="mailto:community@itk.org" target="_blank">community@itk.org</a>; Paul Yushkevich <<a href="mailto:pyushkevich@gmail.com" target="_blank">pyushkevich@gmail.com</a>><br>
<b>Betreff:</b> Re: [ITK] Questions about ITK-Snap gaussian smoothing<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">Hi Benedikt,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">if you are asking about which mesh smoothing algorithm is used, I think this source code file answers that:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif"><a href="https://sourceforge.net/p/itk-snap/src/ci/master/tree/Logic/Mesh/VTKMeshPipeline.cxx#l167" target="_blank">https://sourceforge.net/p/itk-<wbr>snap/src/ci/master/tree/Logic/<wbr>Mesh/VTKMeshPipeline.cxx#l167</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Its <a href="https://sourceforge.net/p/itk-snap/src/ci/master/tree/Logic/Mesh/VTKMeshPipeline.h#l122" target="_blank">
declaration</a> says it is an <a href="http://www.vtk.org/doc/nightly/html/classvtkImageGaussianSmooth.html" target="_blank">vtkImageGaussianSmooth</a>. If documentation is not enough, you can find
<a href="https://gitlab.kitware.com/vtk/vtk/blob/master/Imaging/General/vtkImageGaussianSmooth.cxx" target="_blank">
its source code</a> in VTK.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">As the sigma is passed into there as a parameter, I believe the user-modifiable preferences in the program control it.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Paul (CC'd) might have more explanations.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">Regards,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana",sans-serif">Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)</span><u></u><u></u></p>
</div>
</div>
</div>
</span><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<p class="MsoNormal">On Tue, May 30, 2017 at 4:42 AM, Beyer, Benedikt Alexander <<a href="mailto:benedikt.beyer@rwth-aachen.de" target="_blank">benedikt.beyer@rwth-aachen.de</a><wbr>> wrote:<u></u><u></u></p>
</span><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div id="m_-8206631714797023791m_-3258650679128121341m_-3281516567885869898Item.MessageUniqueBody">
<div>
<div>
<div><span class="">
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Dear ITK community,</span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black"> </span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="color:black">I am currently writing an academic thesis at the RWTH Aachen University and I work with STL-data that is exported with ITK-Snap. A segmented structure is exported as an STL-file
and then analyzed with VG Studio MAX. The data is used to determine measurement uncertainties created by gaussian filtering. To determine this uncertainty, I compare smoothed data to unsmoothed data. I have a few questions regarding the gaussian image smoothing
setting.</span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="color:black"> </span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
</span><ol style="margin-top:0cm" start="1" type="1"><span class="">
<li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">What gaussian filter algorithm does this option use? Eg. Recursive, discrete, robust, etc.</span><span style="font-size:12.0pt"><u></u><u></u></span></li><li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">Is this filter a linear or surface filter?</span><span style="font-size:12.0pt"><u></u><u></u></span></li><li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">How big is the gaussian kernel? Eg. 3x3, 5x5, etc.</span><span style="font-size:12.0pt"><u></u><u></u></span></li><li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">What does the “approximation error max” option do? It has no visual effect on the segmentation.</span><span style="font-size:12.0pt"><u></u><u></u></span></li></span><li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">There seems to be a threshold of the standard deviation at around 0.67. It seems that below this number no smoothing is applied. Is this specific to the program, or is this depende</span><span lang="EN-US" style="color:windowtext">n</span><span lang="EN-US">d
on the voxel size?</span><span lang="EN-US" style="font-size:12.0pt"><u></u><u></u></span></li><span class=""><li class="MsoNormal" style="color:black;margin-left:0cm;background:white">
<span lang="EN-US">Are there any known influences on measurement uncertainty by gaussian smoothing?</span><span style="font-size:12.0pt"><u></u><u></u></span></li></span></ol><span class="">
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="color:black"> </span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="color:black">Thank you in advance and with kind regards</span><span style="font-size:12.0pt;color:black"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="color:#888888">Benedikt Beyer</span><span style="font-size:12.0pt;color:#888888"><u></u><u></u></span></p>
</div>
</span></div>
</div>
</div>
</div>
<p style="background:white"><span style="font-size:12.0pt;color:black"><u></u> <u></u></span></p>
</div><span class="">
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><u></u><u></u></p>
</span></blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</blockquote></div><br></div>