[Insight-users] PNG from ITK

David Macias Verde dmacver at gobiernodecanarias.org
Mon, 12 Apr 2004 17:15:07 +0100


Hi:

Thanks for your quick answer. Probably I had some trouble with my
compiled VTK. I have recompiled it and now it seems to be working right.
Actually my images were 8-bit. 

The error which appeared before it was something like 'the file *.PNG is
not a PNG format'; I can't remember exactly the words.

Thanks again,

David


On Mon, 2004-04-12 at 14:55, Luis Ibanez wrote:
> Hi David,
> 
> 
> Could you please give us more details on
> what kind of "troubles" you have reading
> the PNG files writen with ITK ?
> 
> 
> It is a common mistake to save PNG files in
> 16 bits/pixel and try to view them with simple
> viewers that do not normalize the intensity
> levels. Those images appear black since they
> only contain information in the low bits.
> 
> It is likely that when you edit and save the
> files with a tool like GIMP, the new files
> is an 8 bits/pixel PNG.
> 
> 
> Please give us more information.
> 
> 
>    Thanks
> 
> 
>      Luis
> 
> 
> -------------------------
> David Macias Verde wrote:
> 
> > Hi all:
> > 
> > When applying, for instance, a Canny Edge Detector over a certain PNG
> > image, and I give the result the same PNG format, why do I have troubles
> > when trying to read that PNG image with the well known Amira software or
> > even from VTK using vtkPNGReader? It happens with all the result images
> > from any ITK algorithm related (i.e., Danielsson DM, etc.)
> > 
> > I have realize that if I edit that image into another graphic tool, like
> > GIMP, and I overwrite it, then the file is readed without any trouble.
> > 
> > Thanks,
> > 
> > David Macias-Verde
> > Hospital de Gran Canaria Dr. Negrin
> > 
> > 
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> > 
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users