<div><br></div>Hi Juliette,<div><br><div><br></div><div>1) What File Format are you using ?</div><div><br></div><div>2) It looks that you are you reusing a reader class instance,</div><div> that you have used before for reading a previous image in</div>
<div> your program. Presumably the same reader that you used</div><div> for loading the input image that you cropped.</div><div><br></div><div>3) It is ok to reuse a reader, but, when you do so, instead </div><div> of calling </div>
<div><br></div><div> "reader->Update()" </div><div><br></div><div> you must call the method</div><div><br></div><div> "reader->UpdateLargestPossibleRegion()"</div>
<div><br></div><div><br></div><div> in order to trigger the recomputation of the regions to be read.</div><div><br></div><div><br></div><div><br></div><div> Please let us know how it goes.</div><div><br></div><div><br>
</div><div> Thanks</div><div><br></div><div><br></div><div> Luis</div><div><br></div><div><br>-----------------------------------------------------------------------------------------------------------<br><div class="gmail_quote">
On Mon, Nov 30, 2009 at 8:08 AM, Juliette Deniau <span dir="ltr"><<a href="mailto:juliette.deniau@yahoo.fr">juliette.deniau@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Hi,</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">I have a reading problem of a cropped volume. The error I get is as follows:</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Exception thrown while reading the cropped file</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">itk::ExceptionObject (013DFA88)</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Location: "void __thiscall itk::ImageFileReader<class itk::Image<unsigned char,3>,class itk::DefaultConvertPixelTraits<unsigned char> >::EnlargeOutputRequestedRegion(class itk::DataObject *)"</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">File: c:\mytools\insight\insighttoolkit-3.10.0\code\io\itkImageFileReader.txx</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Line: 341</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Description: itk::ERROR: ImageFileReader(02616CA8): ImageIO returns IO region that does not fully contain the requested regionRequested region: ImageRegion (013DFC74)</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Dimension: 3</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Index: [13, 13, 13]</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Size: [25, 25, 25]</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">StreamableRegion region: ImageRegion (02616D8C)</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Dimension: 3</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Index: [0, 0, 0]</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3"><font face="Calibri"><span> </span>Size: [25, 25, 25]</font></font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">// end error</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">The cropped volume is obtained by cropping the original volume using<span> </span>Bounding Box Index [13, 13, 13]and Bounding Box size [25, 25, 25]of a segmented object contained in the original volume.</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">The original volume is as following:</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">inputSize= 64, 64, 64</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">inputOrigin= 0, 0, 0</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">inputSpacing= 1, 1, 1</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">inputStart= 0, 0, 0</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">I could not understand the above error especially I can view the cropped volume using<span> </span>Volview without any problem! But I can’t read it !</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Could anyone help me on this matter? </font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Many thanks</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri">Juliette.</font>
</p><p style="margin:0cm 0cm 10pt" class="MsoNormal"><font size="3" face="Calibri"> </font></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>
<p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p></td></tr></tbody></table><br>
</blockquote></div><br></div></div>