[Insight-users] Input Format

Bill Lorensen bill.lorensen at gmail.com
Mon Oct 27 17:27:21 EDT 2008


Ankit,

png does not support float images. meta and nrrd support float. You
could cast back to signed short after the processing. Then save as
dicom, meta or nrrd. png does not support signed short.

Bill

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


More information about the Insight-users mailing list