Hi Bill,<br><br>Yeah. I cast the image to unsigned char to output it as a png file. But that is not my main problem. <br><br>My main issue is taking the dicom file as input and converting it into some format (either using ITK or some other software) so that I can use float as the pixel type and apply filters on it. What would this file type be?<br>
<br>Ankit.<br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 2:27 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ankit,<br>
<br>
png does not support float images. meta and nrrd support float. You<br>
could cast back to signed short after the processing. Then save as<br>
dicom, meta or nrrd. png does not support signed short.<br>
<br>
Bill<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Oct 27, 2008 at 4:51 PM, Ankit Gupta &lt;<a href="mailto:gankit@cs.stanford.edu">gankit@cs.stanford.edu</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am relatively new to ITK and my project involves working with dicom<br>
&gt; images, applying image processing filters on them and viewing the output.<br>
&gt; Currently, I am trying to apply different blur filters to dicom images. I<br>
&gt; understand that these filters use float as the pixel type whereas dicom<br>
&gt; files have signed short as pixel types. So, what image format should be used<br>
&gt; (or what format should these dicom images be converted to) so as to apply<br>
&gt; filters on them without loss of information?<br>
&gt;<br>
&gt; I tried to take a dicom file as input and apply a resize and then a cast<br>
&gt; filter to cast it to a float format. But by viewing the output (as a png<br>
&gt; file), I found that a lot of information was lost and the image looked very<br>
&gt; different. I am stuck at his point for nearly a week and can&#39;t seem to find<br>
&gt; any solution. Any help would be greatly appreciated.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ankit.<br>
&gt;<br>
&gt; --<br>
&gt; Ankit Gupta<br>
&gt; 1st yr. Grad Student<br>
&gt; Stanford University<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Insight-users mailing list<br>
&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ankit Gupta<br>1st yr. Grad Student<br>Stanford University<br>