[Insight-users] Running filter on images with different LargestPossibleRegion sizes

Mackie, Prescott M prescott-mackie at uiowa.edu
Wed Jul 21 18:14:56 EDT 2010


Dr. Mailinglist,

I created a filter in which I am forming an output image based on information from four input images.
However, the fourth input image has a larger region size from the other three (first three have same size).
I am getting an error that reads:

terminate called after throwing an instance of 'itk::InvalidRequestedRegionError'
what(): ......./Insight/Code/Common/itkDataObject.cxx:397:
Requested region is (at least partially) outside the largest possible region.


I think my problem lies in the ThreadedGenerateData() function of the .txx code.  Is there someway to run the
'while' loop for only a Region Size of the smaller image?

The .txx and .h files are attached.  Ignore most of the comments in the code. I templated each code off
of the checkerboard image filters in the library.
Let me know if I need to explain some functions or my problem a little bit more clearly.
Thanks.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkWatershedZoneCalc.txx
Type: application/octet-stream
Size: 4922 bytes
Desc: itkWatershedZoneCalc.txx
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100721/1d0d9a4c/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkWatershedZoneCalc.h
Type: text/x-chdr
Size: 3810 bytes
Desc: itkWatershedZoneCalc.h
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100721/1d0d9a4c/attachment-0001.h>


More information about the Insight-users mailing list