[ITK] [ITK-users] the error in the example of ImageSeriesReadWrite

Dženan Zukić dzenanz at gmail.com
Thu Apr 7 18:50:46 EDT 2016


Hi Apantar,

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.

Regards,
Dženan

On Tue, Apr 5, 2016 at 8:37 PM, Apantar <2389127171 at qq.com> wrote:

> Hi
>     I want use the example:"ImageSeriesReadWrite.cxx" to to read a series
> of 2D slices from independent
> 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.
> That is,
> C:\Users\EVEN
> DUAN>H:\EVENF\I_VTK\TEXT\ImageSeriesReadWrite\bin\Debug\ImageSeriesReadWrite.exe
> 001 002 vwe.png
> ExceptionObject caught !
>
> itk::ExceptionObject (000000000014F530)
> Location: "void __cdecl itk::ImageFileWriter<class itk::Image<unsigned
> char,3> >::Write(void)"
> File: h:\evenf\i_vtk\itk\itk2010\include\itk-4.7\itkImageFileWriter.hxx
> Line: 290
> Description: itk::ERROR: ImageFileWriter(0000000002CA44A0): Largest
> possible region does not fully contain requested paste IO regionPaste IO
> region: ImageIORegion (000000000014EDA0)
>   Dimension: 3
>   Index: 0 0 0
>   Size: 0 0 2
> Largest possible region: ImageRegion (000000000014EC68)
>   Dimension: 3
>   Index: [0, 0, 0]
>   Size: [0, 0, 2]
>   so what's wrang?
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160407/317a81a4/attachment.html>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list