[Insight-users] Problems with fixedReader->Update();

motes motes mort.motes at gmail.com
Tue Jul 21 16:14:26 EDT 2009


Ok in the followup its recommended to change the type of PixelType to:

typedef unsigned char  PixelType;

or

typedef unsigned short   PixelType;


But I already declared it as :

typedef unsigned char  PixelType;

and I have also tried:

typedef unsigned short   PixelType;

but I still get the same error, any ideas?




2009/7/21 Ramón Casero Cañas <ramon.casero at comlab.ox.ac.uk>

> motes motes wrote:
>
>>
>> But the call:
>>      fixedReader->Update();
>>
>> throws the exception:
>>
>> Exception thrown
>>
>> itk::ExceptionObject (00CAE438)
>> Location: "void __thiscall itk::PNGImageIO::WriteSlice(const class
>> std::basic_string<char,struct std::char_traits<c
>> har>,class std::allocator<char> > &,const void *)"
>> File: ..\..\..\Code\IO\itkPNGImageIO.cxx
>> Line: 473
>> Description: PNG supports unsigned char and unsigned short
>>
>>
>> I have tried removing the update() call but then I get an error further
>> down
>> the code. It seems that the error is related to the PNG format of the
>> file,
>> any ideas?
>>
>
> Hi motes,
>
> A quick search in google of the error, i.e. search for
>
> "Description: PNG supports unsigned char and unsigned short"
>
> shows that this problem has been addressed in a previous thread of this
> list
>
> http://www.itk.org/pipermail/insight-users/2006-September/019320.html
>
> Cheers,
>
> Ramon.
>
> --
> Ramón Casero Cañas, DPhil
>
> Computational Biology, Computing Laboratory
> University of Oxford
> Wolfson Building, Parks Rd
> Oxford OX1 3QD
>
> tlf     +44 (0) 1865 610807
> web     http://web.comlab.ox.ac.uk/people/Ramon.CaseroCanas
> photos  http://www.flickr.com/photos/rcasero/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090721/a88a91f1/attachment.htm>


More information about the Insight-users mailing list