<div dir="ltr">zhq,<div><br></div><div><br></div><div>Thanks for posting the detailed error message.</div><div><br></div><div>The comment in line 292 of itkImageSeriesReader.hxx:</div><div><a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/ImageBase/include/itkImageSeriesReader.hxx#L292">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/ImageBase/include/itkImageSeriesReader.hxx#L292</a><br>
</div><div><br></div><div>may help explain the source of the problem.</div><div><br></div><div>It looks like you may be instantiating the ImageSeriesReader with</div><div>an Image type that has 2 dimensions, while you probably should</div>
<div>instantiate it with an image type that has 3 dimensions.</div><div><br></div><div>The template argument of the ImageSeriesReader is the Output</div><div>image type.</div><div><br></div><div><br></div><div>So, for the common case of:</div>
<div><br></div><div> Reading a series of 2D slice files, </div><div> to compose a 3D image as output,</div><div><br></div><div><br></div><div>a) The itkImageSeriesReaders has to be instantiated </div><div>
with a 3D image as template parameter.</div><div><br></div><div>and</div><div><br></div><div>b) The collection of files names that are passed to it, </div><div> should refer to files that contain 2D images.</div><div>
<br></div><div><br></div><div><br></div><div><br></div><div> Hope this helps,</div><div><br></div><div><br></div><div> Luis</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 8:01 AM, zhq <span dir="ltr"><<a href="mailto:15891495523@126.com" target="_blank">15891495523@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial">Dear All : <div> The error is :</div><div><img src="cid:3e1fe3f4$1$1433424e449$Coremail$15891495523$126.com"></div>
<div><br></div><div><span style="white-space:pre-wrap"> </span>the itk say : size mismatch ! And then display two data to show the " different " size ! but , in fact , the two picture are the same data !</div><div>
Who can explain it?</div><div> Thanks in advance !</div><div>zhq</div></div><br><br><span title="neteasefooter"><span><div><div style="border-top:#cccccc 1px solid;padding:10px 5px;font-size:12px;color:#666;line-height:22px">
来自网易手机号码邮箱<a href="http://shouji.163.com" style="color:#0000ff" target="_blank">了解更多</a></div></div>
</span></span><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>