[ITK] Reading in a 3d tiff stack?

Ronn Kling ronn at rlkling.com
Fri Jan 9 13:09:35 EST 2015


All,
I have a set of stacked tiff images that I am trying to read in, but I 
am getting an error on this last line

           typedef unsigned char fixedPixelType;
           typedef unsigned char movingPixelType;

           typedef itk::Image<fixedPixelType, 3> fixedImageType;
           typedef itk::Image<movingPixelType, 3> movingImageType;


   typedef itk::ImageSeriesReader< fixedImageType  > FixedImageReaderType;
   FixedImageReaderType::Pointer  fixedReader  = 
FixedImageReaderType::New();

   fixedReader->SetImageIO(itk::TIFFImageIO::New());


I am getting an "unhandled exception" in itkTIFFimageIO.cxx at the 
bottom line

TIFFImageIO::TIFFImageIO()
{
   this->SetNumberOfDimensions(2);
   m_PixelType = SCALAR;
   m_ComponentType = UCHAR;

   this->InitializeColors();
   m_InternalImage = new TIFFReaderInternal;

   m_Spacing[0] = 1.0;
   m_Spacing[1] = 1.0;

   m_Origin[0] = 0.0;

WHY??????
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150109/26fac858/attachment.html>


More information about the Community mailing list