[ITK] Getting ImageType for TIFF

Мар'ян Климов nekto1989 at gmail.com
Wed Aug 13 13:47:02 EDT 2014


Hi,

How to properly read 32-bit TIFF? I need to get itk::Image<unsigned short>
on output. If I use it as ImageType for ImageFileReader, it is read as
fully black (checked contrast with Image Watch and it is for sure
completely empty). If I read it with pixel type RGBPixel<unsigned char> or
RGBAPixel<unsigned char>, it is read properly. But I need to convert it
manually to unsigned short after this. So what is the proper way of reading
it? Do I need to create templated methods for every pixeltype with
conversions to unsigned short?

Best regards,
Marian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140813/d0b0ffbb/attachment.html>


More information about the Community mailing list