[Insight-users] PNG from ITK

Miller, James V (Research) millerjv at crd.ge.com
Mon, 12 Apr 2004 12:31:14 -0400


David, 

I was able to load your PNG into Amira.  The demo version that I downloaded
in Amira 3.1.  You said that you were using Amira 3.0.  Perhaps that is the
difference.

Jim

-----Original Message-----
From: David Macias Verde
[mailto:david.maciasverde at gobiernodecanarias.org]
Sent: Monday, April 12, 2004 12:22 PM
To: Insight-users
Subject: RE: [Insight-users] PNG from ITK


Thank you, Jim.

I have solved my trouble, as I reported to Luis Ibanez, but there are
some images my Amira 3.0 can't read. I attached one of them for you to
check it, if you don't mind. It is the result of a Canny Edge Detector
over a radiotherapy portal view picture.

Regards,

David 

On Mon, 2004-04-12 at 15:10, Miller, James V (Research) wrote:
> We produce PNG images frequently from ITK without any issues viewing 
> them in other packages. I just downloaded a demo of Amira and loaded some
> PNGs that were written by ITK without any issues.
> 
> Are you writing 8 bit or 16 bit PNGs?  Many image viewing applications 
> do not view 16 bit PNGs well.  This can be exacerbated when you accidently

> save 8 bit data in a 16 bit PNG. In this case, the image will appear very 
> very dark because the image is only using 8 bits of the 16 bit dynamic
> range. 
> You can recover somewhat by adjusting the contrast and brightness of the
> image
> in your image viewer.  Another alternative is to rescale the intensities
> before ITK writes the PNG file.
> 
> Jim
> 
> 
> 
> -----Original Message-----
> From: David Macias Verde
> [mailto:david.maciasverde at gobiernodecanarias.org]
> Sent: Monday, April 12, 2004 3:49 AM
> To: Insight-users
> Subject: [Insight-users] PNG from ITK
> 
> 
> 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