<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello Kevin,</div><div><br></div><div>What version of ITK are you using? What file formats are you using? How is the data in your file stored, that is are you converting chars to float during the reading?</div><div><br></div><div>This area of the ImageFileReader has gone under a lot of changes is recent versions. It has been rigorously tested though. So if you are using an old version that could be problematic. But the information I asked above will help me reproduce and look into it a bit closer.</div><div><br></div><div>Your code does look correct.</div><div><br></div><div>Brad</div><div><br></div><div><br></div><br><div><div>On Oct 22, 2009, at 11:24 AM, Kevin H. Hobbs wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I have some images that are fairly large and I do not want to read them<br>in completely. So I call reader->UpdateOutputInformation() so that I can<br>get their region. Then I split the region and extract the sub-region<br>that I want.<br><br>With some sub-regions the output of the extraction is junk.<br><br>If instead of calling reader->UpdateOutputInformation() I call<br>reader-Update() then the output of these same sub-regions is fine.<br><br>I've attached a view from ParaView of these two cases with Update on the<br>left and UpdateOutputInformation on the right.<br><br>I've also attached the code that generated both images.<br><br>Am I doing something wrong or is this a bug?<br><span><ExtractBug.cxx></span><span><slices.png></span><span><signature.asc></span><span><ATT00001..txt></span></div></blockquote></div><br><div>
<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; "><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"> </span><span class="Apple-converted-space"> </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 </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"> </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></span>
</div>
<br></body></html>