[Insight-users] Input Format
Ankit Gupta
gankit at cs.stanford.edu
Mon Oct 27 17:45:52 EDT 2008
Hi Bill,
Yeah. I cast the image to unsigned char to output it as a png file. But that
is not my main problem.
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?
Ankit.
On Mon, Oct 27, 2008 at 2:27 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
> 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
> >
> >
>
--
Ankit Gupta
1st yr. Grad Student
Stanford University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081027/1b1241b2/attachment.htm>
More information about the Insight-users
mailing list