[Insight-users] PixelType Doubt
Shekhar Chandra
Shekhar.Chandra at monash.edu
Thu Sep 9 18:47:18 EDT 2010
Hi Daniela,
You would use unsigned char for 8-bit greyscale images, i.e. with a max
value of 255. This would be a B/W image as an 8-bit image has one
channel. RGB has three 8-bit values, red, green, blue.
Unsigned shorts are used for 16-bit images, such as 16-bit TIFFs. If you
have signed values, you could use the float type. You can convert
between types using the CastImageFilter.
HTH
Cheers
Shakes
On 9/09/2010 5:26 PM, Daniela Sacchetto wrote:
> 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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100910/ed411bf3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shekhar_Chandra.vcf
Type: text/x-vcard
Size: 202 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100910/ed411bf3/attachment.vcf>
More information about the Insight-users
mailing list