[ITK] [ITK-users] Buffered region of size [0, 0, 0]

Bastian A. bastianra at gmail.com
Mon Apr 20 15:45:35 EDT 2015


Hi,

I am trying to multiply two images in a loop. Calling Print() on the inputs
of the MultiplyImageFilter seems to indicate that they have the
same LargestPossible, Buffered and Requested regions.
However, calling UpdateLargestPossibleRegion on the MultiplyImageFilter
will result in the failed assertion during the first iteration:

Assertion `Region ImageRegion (0x7fff777f5b80)
  Dimension: 3
  Index: [-95, -171, -52]
  Size: [188, 675, 10]
 is outside of buffered region ImageRegion (0xdec558)
  Dimension: 3
  Index: [0, 0, 0]
  Size: [0, 0, 0]
' failed.

I am completely lost here, why would the buffered region be of size [0, 0,
0]?
My assuption was that AllocateOutputs() in the filter I am calling would
take care of setting the requested region; both inputs seem to have the
correct regions set.

Any pointers on how to debug this issue would be great.

Thanks,
Bastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150420/e9bbc5a1/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