[Insight-users] [ITK Community] I catch the error with try-catch , but the error make me confuseed !
Luis Ibanez
luis.ibanez at kitware.com
Sun Dec 29 10:09:51 EST 2013
zhq,
Thanks for posting the detailed error message.
The comment in line 292 of itkImageSeriesReader.hxx:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/ImageBase/include/itkImageSeriesReader.hxx#L292
may help explain the source of the problem.
It looks like you may be instantiating the ImageSeriesReader with
an Image type that has 2 dimensions, while you probably should
instantiate it with an image type that has 3 dimensions.
The template argument of the ImageSeriesReader is the Output
image type.
So, for the common case of:
Reading a series of 2D slice files,
to compose a 3D image as output,
a) The itkImageSeriesReaders has to be instantiated
with a 3D image as template parameter.
and
b) The collection of files names that are passed to it,
should refer to files that contain 2D images.
Hope this helps,
Luis
On Fri, Dec 27, 2013 at 8:01 AM, zhq <15891495523 at 126.com> wrote:
> Dear All :
> The error is :
>
> 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 !
> Who can explain it?
> Thanks in advance !
> zhq
>
>
> 来自网易手机号码邮箱了解更多 <http://shouji.163.com>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131229/9efae2b6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 15857 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131229/9efae2b6/attachment.png>
More information about the Insight-users
mailing list