[Insight-users] Re: Simultaneous 8-bit/16-bit image compatibility
Robert Maroon
robertmaroon at yahoo.com
Fri Jun 3 16:29:37 EDT 2005
Hi Luis,
I am now trying to implement this however I wanted to
know if there is a way to set up a program to be able
to tell what the data type of a raw volume is before
reading it in. This would be used so that in the case
of 8-bit data, I could cast the volume to 16-bits but
in the case of 16-bit data I wouldn't have to do
anything? From what I have tried, it does not appear
that using a 16-bit reader automatically casts an
8-bit volume to 16-bits when invoked.
Thanks,
Robert
>In any case,
>
>Just to answer your question, what you can do is to
>have two readers. One instantiated over 8bits, and
>the other over 16bits. The 16bits one, you connect it
>to a RescaleIntensityImageFilter with an output image
>of 8 bits, or to a IntensityWindowingImageFilter.
>
>At that point you will have to specify the policy
>that you want to use for converting these 16 bits
>into just 8 bits... (and hopefully not loosing a the
>capability of detecting a tumor in the process....).
>
>
>You will find details about the Intensity rescaling
>filter in the ITK Software Guide
>
>
> http://www.itk.org/ItkSoftwareGuide.pdf
>
>
>
>in Section 6.3, "Casting and Intensity Mapping",
>pdf-page 172.
__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
More information about the Insight-users
mailing list