[Insight-users] ITK 3.2 png read/write problem

robert tamburo robert.tamburo at gmail.com
Wed Mar 16 10:55:27 EDT 2011


Your image produces a blank image on my system. Actually, reads 255 pixels
as 0 (I printed out pixel at index [0, 0]).

The output has a non-zero output with pixel type:
-  unsigned short  (values of 0 and 65025)
- RGBPixel<unsigned char> (values of 0, 0, 0 and 255, 255, 255)
- RGBPixel<unsigned short> (values of 0, 0, 0 and 255, 255, 255)

If I open the image in ImageJ and re-save it as a PNG (32-bit, RGB), it
works fine (values of 0 and 255) with pixel type unsigned char.

Could it be the image itself being the issue?

On Wed, Mar 16, 2011 at 10:27 AM, David Doria <daviddoria at gmail.com> wrote:

> On Wed, Mar 16, 2011 at 10:21 AM, robert tamburo <robert.tamburo at gmail.com
> > wrote:
>
>> Code works on my system with ITK 3.18. If you send me the image, I can
>> test it on my system.
>>
>
> Here is the image:
> http://rpi.edu/~doriad/Upload/elephant-mask.png
>
> <http://rpi.edu/~doriad/Upload/elephant-mask.png>I'll try building 3.18
> and see if it works.
>
> David
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110316/5f2fb20d/attachment.htm>


More information about the Insight-users mailing list