[Insight-users] Read info extract write bug?
Bradley Lowekamp
blowekamp at mail.nih.gov
Thu Oct 22 11:38:01 EDT 2009
Hello Kevin,
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?
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.
Your code does look correct.
Brad
On Oct 22, 2009, at 11:24 AM, Kevin H. Hobbs wrote:
> I have some images that are fairly large and I do not want to read
> them
> in completely. So I call reader->UpdateOutputInformation() so that I
> can
> get their region. Then I split the region and extract the sub-region
> that I want.
>
> With some sub-regions the output of the extraction is junk.
>
> If instead of calling reader->UpdateOutputInformation() I call
> reader-Update() then the output of these same sub-regions is fine.
>
> I've attached a view from ParaView of these two cases with Update on
> the
> left and UpdateOutputInformation on the right.
>
> I've also attached the code that generated both images.
>
> Am I doing something wrong or is this a bug?
> <ExtractBug.cxx><slices.png><signature.asc><ATT00001..txt>
========================================================
Bradley Lowekamp
Lockheed Martin Contractor for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091022/b5f74fdb/attachment.htm>
More information about the Insight-users
mailing list