<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Apantar,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">the error indicates that the file has 0 size (0*0*2=0). It is strange that you are getting that error message. Have you tried building ImageSeriesReadWrite in debug mode and then stepping through it? I guess there is something wrong with the images (perhaps one is corrupted) or even the file names are not generated properly.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 5, 2016 at 8:37 PM, Apantar <span dir="ltr"><<a href="mailto:2389127171@qq.com" target="_blank">2389127171@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">Hi</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">    I want use the example:"ImageSeriesReadWrite.cxx" to to read a series of 2D slices from independent</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">files in order to compose a volume. But when I input " 001 003 vwe.png" in the cmd window, there is always is a problem.</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">That is,</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">C:\Users\EVEN DUAN>H:\EVENF\I_VTK\TEXT\ImageSeriesReadWrite\bin\Debug\ImageSeriesReadWrite.exe 001 002 vwe.png</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">ExceptionObject caught !</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px"><br></div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">itk::ExceptionObject (<span data="https://ci6.googleusercontent.com/proxy/bmjcfYoHNd3ANMOSNXjyCHHjK8f8IuFIbDpFp3mspZvFPA4Iit4g160=s0-d-e1-ft#http://000000000014" style="border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(204,204,204)">000000000014</span>F530)</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">Location: "void __cdecl itk::ImageFileWriter<class itk::Image<unsigned char,3> >::Write(void)"</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">File: h:\evenf\i_vtk\itk\itk2010\include\itk-4.7\itkImageFileWriter.hxx</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">Line: 290</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">Description: itk::ERROR: ImageFileWriter(<span data="https://ci6.googleusercontent.com/proxy/pupv52uJierJOa5YTkfhulb7vRXaoIZ3lB_7BSl4xvTuXrly97Ph=s0-d-e1-ft#http://0000000002" style="border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(204,204,204)">0000000002</span>CA44A0): Largest possible region does not fully contain requested paste IO regionPaste IO region: ImageIORegion (<span data="https://ci6.googleusercontent.com/proxy/bmjcfYoHNd3ANMOSNXjyCHHjK8f8IuFIbDpFp3mspZvFPA4Iit4g160=s0-d-e1-ft#http://000000000014" style="border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(204,204,204)">000000000014</span>EDA0)</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Dimension: 3</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Index: 0 0 0</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Size: 0 0 2</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">Largest possible region: ImageRegion (<span data="https://ci6.googleusercontent.com/proxy/bmjcfYoHNd3ANMOSNXjyCHHjK8f8IuFIbDpFp3mspZvFPA4Iit4g160=s0-d-e1-ft#http://000000000014" style="border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(204,204,204)">000000000014</span>EC68)</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Dimension: 3</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Index: [0, 0, 0]</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  Size: [0, 0, 2]</div><div style="font-family:'lucida Grande',Verdana,'Microsoft YaHei';line-height:23.8px">  so what's wrang?</div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>