[Insight-users] Re: Problem with png files

BATY Xavier xavier.baty at univ-angers.fr
Mon Oct 24 03:53:42 EDT 2005


Hello again,

I just found that my problem came from the fact that cameraman.png is  8-bit
depth image (uchar?) and cameraman2.png is a 16-bits depth image (ushort).

is ITK use 16-bits depth by default?
and if so, can I set ITK to use 8-bits depth instead.


----- Original Message ----- 
From: "BATY Xavier" <xavier.baty at univ-angers.fr>
To: <insight-users at itk.org>
Sent: Monday, October 24, 2005 9:38 AM
Subject: Problem with png files


> Hello,
>
> I have a problem with png files.
> I tried the example ImageReadWrite.cxx given with ITK (latest cvs done on
> Thursday, 20th october)
> with the image cameraman.png (see the image at http://xavbat.free.fr).
>
> I tried to write this image in a file named cameraman2.png and all I got
is
> a black square (see the image at http://xavbat.free.fr).
>
> I use a Fedora core 3 based Linux.
>
> Can anybody help me to solve this problem? I had the same problem saving
in
> tiff format but not in mhd format.
>
> thanks
> Xav
>



More information about the Insight-users mailing list