<div dir="ltr">CT data is usually signed. Try short instead of unsigned short.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 9:19 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello Micro,<div><br></div><div>I don't regularly work with CT, so I don't know for certain. What is the pixel type in your file?</div>
<div><br></div><div><a href="http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType" target="_blank">http://www.itk.org/Wiki/ITK/Examples/IO/ReadUnknownImageType</a></div><div><br></div><div>Also why do you say you image is all zeros? Did you inspect it in am image viewer? Perhaps all the values were just too low to be seen?</div>
<div><br></div><div>It may be best to have the output of the filter be at least of float, since its computing the standard deviation will be low in homogeneous regions which may be causing you to thing it's zero.</div>
<div><br></div><div>You are correct that in 3d a radius of 2 aka [2,2,2] will yield a neighborhood with a size of [5,5,5]. This has to do with how the Neighborhood operators and iterator work. You can find some example which may help you understand the behavior better here:</div>
<div><br></div><div><a href="http://www.itk.org/Doxygen/html/examples.html" target="_blank">http://www.itk.org/Doxygen/html/examples.html</a></div><div><a href="http://www.itk.org/Wiki/ITK/Examples" target="_blank">http://www.itk.org/Wiki/ITK/Examples</a></div>
<div><br></div><div>Brad</div><div><div class="h5"><div><br></div><div><br><div><div>On Aug 16, 2013, at 9:02 AM, Mirco Serra <<a href="mailto:mirco9091@hotmail.it" target="_blank">mirco9091@hotmail.it</a>> wrote:</div>
<br><blockquote type="cite"><div style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div dir="ltr">Hello,<div><br></div><div>Thanks for your answer!</div><div><br></div><div>I am using unsigned short as image type both for the input and the output image. Is this the correct type for 3D CT images? Also, would you mind explaining me the way the radius for the local region is selected for 3D images? In 2D I know that a radius value of 1 corresponds to a 3x3 region, a radius of 2 is a 5x5 region and so on. Is it the same in 3D, i.e. a value of 1 is a region of 3x3x3?</div>
<div><br></div><div>Many thanks,</div><div><br></div><div>Mirco<br><br><div><hr>Subject: Re: [Insight-users] NoiseImageFilter for 3D images<br>From:<span> </span><a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a><br>
Date: Fri, 16 Aug 2013 08:48:56 -0400<br>CC:<span> </span><a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>To:<span> </span><a href="mailto:mirco9091@hotmail.it" target="_blank">mirco9091@hotmail.it</a><br>
<br>Hello,<div><br></div><div>What are your template parameters to the filter i.e. the image types used?</div><div><br></div><div>I just tried this filter in SimpleITK with a couple different images and it seems to work fine.</div>
<div><br></div><div>Thanks,</div><div>Brad</div><div><br><div><div>On Aug 16, 2013, at 5:05 AM, Mirco Serra <<a href="mailto:mirco9091@hotmail.it" target="_blank">mirco9091@hotmail.it</a>> wrote:</div><br><blockquote>
<div style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div dir="ltr">Hi guys,<div><br></div><div>I am trying to use the NoiseImageFilter class in order to get the local standard deviation of a 3D DICOM/nrrd dataset. The filter works nicely with 2D images, but when I try to use for 3D datasets it does not work properly and it returns an image with only zeros as intensity values. Do you have any idea why this could happen? I struggled with it a lot but I could not find a solution! Is the filter for 3D images too?</div>
<div><br></div><div>All the best and thank you very much,</div><div><br></div><div>Mirco </div></div>_____________________________________<br>Powered by<span> </span><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></div></blockquote></div><br></div></div>
</div></div></div><br></blockquote></div><br></div></div></div></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.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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>