[Insight-users] ResampleFilter for 3D image
Daniela Sacchetto
danysunflower at hotmail.it
Sun May 9 06:22:22 EDT 2010
Hi everyone
I'm new in itk....so, sorry for my (maybe stupid) questions.
I have to resample a 3D US image (it is a 97 frames image and I want to reduce its frame-number to 50).
I tried to adapt ResampleImageFilter (Examples/Filtering/ResampleImageFilter.cxx.) for 3D image. I wanted to run it to see how that filter works but I've this error:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
terminate called after throwing an instance of 'itk::ExceptionObject'
what(): /usr/local/include/InsightToolkit/IO/itkImageFileWriter.txx:271:
itk::ERROR: ImageFileWriter(0x9bac220): Largest possible region does not fully contain requested paste IO regionPaste IO region: ImageIORegion (0xbfbda908)
Dimension: 3
Index: 0 0 0
Size: 3216878376 138384173 50
Largest possible region: ImageRegion (0xbfbda964)
Dimension: 3
Index: [0, 0, 0]
Size: [3216878376, 138384173, 50]
Aborted
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I think that my code is wrong but I don't find my (propably stupid) error....
I add my wrong code to this mail...
Thanks all
Daniela
_________________________________________________________________
Non sei a casa? Prova Web Messenger
http://www.messenger.it/home_novita.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100509/8c111b73/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ResampleImageFilter.cxx
Type: text/x-c++src
Size: 15978 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100509/8c111b73/attachment-0001.cxx>
More information about the Insight-users
mailing list