<font><font face="verdana,sans-serif">For the resampling you have to make sure to use either linear, cubic, or some more advanced interpolation scheme, not the nearest neighbor which is the default I think.<br></font></font><br>
<div class="gmail_quote">2012/3/22 Xiaopeng Yang <span dir="ltr"><<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I resampled the segmented mask images. But when I apply vtkcontourfilter to generate a 3D surface, only iso-surfaces of the original slices of the mask images are generated, not including the resampled slices. Thus the results look the same as before. Still stairs appear.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u>Â <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Xiaopeng <u></u><u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Dženan Zukić [mailto:<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>] <br>
<b>Sent:</b> Wednesday, March 21, 2012 7:07 PM<br><b>To:</b> Xiaopeng Yang<br><b>Cc:</b> Kent Ogden; <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a></span></p><div class="im"><br><b>Subject:</b> Re: [Insight-users] How to smooth the segmented surface<u></u><u></u></div>
<p></p></div><p class="MsoNormal"><u></u>Â <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif"">You can <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/ResampleImageFilter" target="_blank">resample</a> the image, or use linear <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/LinearInterpolateImageFunction" target="_blank">interpolator</a>.</span><u></u><u></u></p>
<div><div class="im"><p class="MsoNormal">On Tue, Mar 20, 2012 at 14:07, Xiaopeng Yang <<a href="mailto:yxp233@postech.ac.kr" target="_blank">yxp233@postech.ac.kr</a>> wrote:<u></u><u></u></p></div><div><div class="h5">
<div style="margin-left:3.0pt;margin-top:3.0pt;margin-right:3.0pt;margin-bottom:.75pt"><div><div><p class="MsoNormal"><span style="color:#1f497d">Hi Kent,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Â </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Do you know any interpolate class in ITK which can generate more slices? For volumetry, I guess I can use the original data.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Â </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Thanks,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1f497d">Xiaopeng</span><u></u><u></u></p></div><p class="MsoNormal"><span style="color:#1f497d">Â </span><u></u><u></u></p>
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Kent Ogden [mailto:<a href="mailto:ogdenk@upstate.edu" target="_blank">ogdenk@upstate.edu</a>] <br>
<b>Sent:</b> Tuesday, March 20, 2012 9:50 PM<br><b>To:</b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>; Xiaopeng Yang</span><u></u><u></u></p><div><p class="MsoNormal"><br><b>Subject:</b> Re: [Insight-users] How to smooth the segmented surface<u></u><u></u></p>
</div></div></div><p class="MsoNormal">Â <u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:18.0pt">Xiaopeng,</span> <u></u><u></u></p><div><p class="MsoNormal">Â <u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt">
<span style="font-size:18.0pt">This is a fundamental limitation of your data that can only truly be solved by reconstructing thinner slices at the time of the scan. Â You could interpolate between images to generate more slices, which would result in a smoother looking rendering. Â If you are trying to make quantitative measurements (e.g. volume) you must be careful about these kinds of manipulations though.</span> <u></u><u></u></p>
<p class="MsoNormal">Â <u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:18.0pt">Kent</span> <u></u><u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">Â <u></u><u></u></p><p style="margin:0in;margin-bottom:.0001pt">
<br><br>>>> "Xiaopeng Yang" <<a href="mailto:yxp233@postech.ac.kr" target="_blank">yxp233@postech.ac.kr</a>> 3/19/2012 10:17 PM >>><u></u><u></u></p></div><div><p class="MsoNormal">Dear Users, <u></u><u></u></p>
<div><div><p class="MsoNormal">Â <u></u><u></u></p><p class="MsoNormal">I have tried to segment the liver from 5 mm CT slices. When I tried to visualize the segmented liver in 3D, I found that the surface of the 3D liver was discrete, just like stairs. I guess that is because of the 5 mm interval between CT slices. Do you guys have any good idea how to make the 3D surface of the liver look continuous and smooth? <u></u><u></u></p>
<p class="MsoNormal">Â <u></u><u></u></p><p class="MsoNormal">Thanks, <u></u><u></u></p><p class="MsoNormal">Xiaopeng <u></u><u></u></p></div></div></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br></p><div class="im">_____________________________________<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><u></u><u></u></div>
<p></p></div><p class="MsoNormal"><u></u>Â <u></u></p></div></div></blockquote></div><br>