<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This looks like the following bug:<div><br></div><div><a href="http://www.itk.org/Bug/view.php?id=6840">http://www.itk.org/Bug/view.php?id=6840</a></div><div><br></div><div>I have been meaning to fix this, I'll start.</div><div><br></div><div>In the mean time you should be able to get around this bug, by not performing a conversion in the Reader.&nbsp;In this case your file is of type unsigned char, but you are reading it as a unsigned short with an itk::ImageFileReader&lt;Image&lt;unsigned short, 3&gt; &gt;. &nbsp;Followed this reader by a&nbsp;CastImageFilter&nbsp;or&nbsp;a&nbsp;custom&nbsp;adaptor, should enable you to by pass this bug.</div><div><br></div><div>Brad</div><div><br></div><div><br><div><div>On Aug 10, 2009, at 10:38 AM, Sean McBride wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 8/10/09 8:41 AM, <a href="mailto:lynx.abraxas@freenet.de">lynx.abraxas@freenet.de</a> said:<br><br><blockquote type="cite">Is there some way &nbsp;to<br></blockquote><blockquote type="cite">find out if itk is compiled as 64-bit?<br></blockquote><br>Your backtrace suggests you are indeed running as 64 bit:<br><br>(gdb) where<br>#0 &nbsp;0x00000000005916f0 in itk::ConvertPixelBuffer&lt;unsigned char,<br>unsigned short, itk::DefaultConvertPixelTraits&lt;unsigned short&gt;<br><blockquote type="cite">::ConvertGrayToGray ()<br></blockquote>#1 &nbsp;0x00000000005d25be in itk::ConvertPixelBuffer&lt;unsigned char,<br>unsigned short, itk::DefaultConvertPixelTraits&lt;unsigned short&gt; &gt;::Convert ()<br><br>Those addresses are 64 bit.<br><br>It could well be a bug in ITK... since you know how to use gdb, I'd<br>suggest looking for some code that does something like use a small<br>integer type (like int) for storing sizes.<br><br>-- <br>____________________________________________________________<br>Sean McBride, B. Eng &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>Rogue Research &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.rogue-research.com">www.rogue-research.com</a> <br>Mac Software Developer &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Montréal, Québec, Canada<br><br><br>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">========================================================</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-family: Arial; "><span class="Apple-style-span" style="font-family: Arial; ">Lockheed Martin&nbsp;</span></span></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Contractor for</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Office of High Performance Computing and Communications</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></span></div></span> </div><br></div></body></html>