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"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></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 <<a href="mailto:gankit@cs.stanford.edu">gankit@cs.stanford.edu</a>> wrote:<br>
> Hi,<br>
><br>
> I am relatively new to ITK and my project involves working with dicom<br>
> images, applying image processing filters on them and viewing the output.<br>
> Currently, I am trying to apply different blur filters to dicom images. I<br>
> understand that these filters use float as the pixel type whereas dicom<br>
> files have signed short as pixel types. So, what image format should be used<br>
> (or what format should these dicom images be converted to) so as to apply<br>
> filters on them without loss of information?<br>
><br>
> I tried to take a dicom file as input and apply a resize and then a cast<br>
> filter to cast it to a float format. But by viewing the output (as a png<br>
> file), I found that a lot of information was lost and the image looked very<br>
> different. I am stuck at his point for nearly a week and can't seem to find<br>
> any solution. Any help would be greatly appreciated.<br>
><br>
> Thanks,<br>
> Ankit.<br>
><br>
> --<br>
> Ankit Gupta<br>
> 1st yr. Grad Student<br>
> Stanford University<br>
><br>
</div></div>> _______________________________________________<br>
> Insight-users mailing list<br>
> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ankit Gupta<br>1st yr. Grad Student<br>Stanford University<br>