[Insight-users] PixelType Doubt

John Fraser John.Fraser at icr.ac.uk
Fri Sep 10 04:55:50 EDT 2010


I think it's unsafe to make assumptions about the pixel type you are dealing with.  Normally the header file associated with the image will give you information about which pixel type you should use.  For example, I'm reading Interfile files which contain a field like this, "number format := UNSIGNED INTEGER", for DICOM there are similar fields.

>>> Daniela Sacchetto <danysunflower at hotmail.it> 09/09/2010 08:26 >>>

Hi everyone,
I'm writing because I have a question for you.
Could anyone explain me how can I decide the itk::PixelType? Usually I work with unsigned short pixels, but now I would like to understand better this problem.
 
For ex I know that:
 
PixelType must be "signed" for CT since Hounsfield units can be < 0.
 
Are there any rules for each medical image? (TC,PET,US,RX,...)
And when do you use pixelType = unsigned char?
 
Thanks all for your help,
Regards
Daniela

The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.

This e-mail message is confidential and for use by the addressee only.  If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100910/2325773c/attachment.htm>


More information about the Insight-users mailing list