Your image produces a blank image on my system. Actually, reads 255 pixels as 0 (I printed out pixel at index [0, 0]).<div><br></div><div>The output has a non-zero output with pixel type:</div><div>-  unsigned short  (values of 0 and 65025)</div>

<div>- RGBPixel&lt;unsigned char&gt; (values of 0, 0, 0 and 255, 255, 255)</div><div>- RGBPixel&lt;unsigned short&gt; (values of 0, 0, 0 and 255, 255, 255)<br><div><br></div><div>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.</div>

<div><br></div><div>Could it be the image itself being the issue?<br><div><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 10:27 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Wed, Mar 16, 2011 at 10:21 AM, robert tamburo <span dir="ltr">&lt;<a href="mailto:robert.tamburo@gmail.com" target="_blank">robert.tamburo@gmail.com</a>&gt;</span> wrote:</div>
</div><div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Code works on my system with ITK 3.18. If you send me the image, I can test it on my system.<br>


</blockquote><div> </div></div><div>Here is the image:</div><a href="http://rpi.edu/~doriad/Upload/elephant-mask.png" target="_blank">http://rpi.edu/~doriad/Upload/elephant-mask.png</a><div>
<br></div><div><a href="http://rpi.edu/~doriad/Upload/elephant-mask.png" target="_blank"></a>I&#39;ll try building 3.18 and see if it works.<br><br></div><div>David </div></div><br></div>
</blockquote></div><br></div></div></div>