[Insight-users] Filter with inputs which do not occupy the same physical space
Dženan Zukić
dzenanz at gmail.com
Tue Aug 9 04:58:13 EDT 2011
Hi guys,
I am trying to create a filter with n+m inputs and 1 output. n inputs have
full size (the whole image), while the remaining m inputs are only a certain
sub-region of that image (schematic attached).
I have written all the code, and it works well for the case of 4 same-sized
inputs. But when 3 cropped inputs are added, I hit and exception in
d:\sdk\itk4\modules\core\common\include\itkImageToImageFilter.hxx, line 253
Inputs do not occupy the same physical space!
InputImage Origin: [26.107, -141.741, 231.561], InputImage4 Origin:
[26.4835, -27.7276, 75.3783]
The main reason I wrote this logic as a filter is that it is
easily parallelizable and I wanted to take advantage of the filter
multithreading infrastructure.
Of course, I want to produce the output the same size (and position) as the
smaller images, sampling larger images by voxel position, not index.
Is there some workaround for this limitation or should I just abandon
multithreading and write normal sequential function?
Regards,
Dženan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110809/626e8331/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MultiNonSame.png
Type: image/png
Size: 15430 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110809/626e8331/attachment.png>
More information about the Insight-users
mailing list