glehmann / wrapitk

Automatically exported from code.google.com/p/wrapitk
0 stars 0 forks source link

Changing dimensions with ExtractImageFilter fails on ImageFileWriter Update() #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create an ExtractImageFilter with decreased output image dimension.
2.  Connect an ImageFileWriter
3.

What is the expected output? What do you see instead?

RuntimeError: /var/tmp/paludis/sci-libs-itk-3.16.0/work/InsightToolkit-
3.16.0/Code/Common/itkDataObject.cxx:397:
Requested region is (at least partially) outside the largest possible 
region.

What version of the product are you using? On what operating system?
WrapITK 0.3.0 on Linux with ITK-3.16.0

Please provide any additional information below.
I am trying to reproduce the ITK Examples/IO/ImageReadExtractWrite.cxx
A sample python script is attached (the input and output file names should 
be changed)

Original issue reported on code.google.com by matthew....@gmail.com on 27 Mar 2010 at 11:56

Attachments:

GoogleCodeExporter commented 9 years ago
I notice that it will work if you keep the output image type's dimension at 3 
and set 
the size to 1 instead of 0.

Original comment by matthew....@gmail.com on 28 Mar 2010 at 12:09