[Insight-developers] ImageConstIterator complaining about non-sensical region boundary violation?
Williams, Norman K
norman-k-williams at uiowa.edu
Wed Sep 21 17:14:23 EDT 2011
Having a problem with the itkTestDriver infrastructure. We are using ITK4 at the Beta 01 tag.
After our test successfully completes, the Test Driver tries to check two files, but itk::Testing::ComparisonImageFilter is throwing an exception with this message:
BRAINSFitTestDriver: .../ITKv4/Modules/Core/Common/include/itkImageConstIterator.h:177: itk::ImageConstIterator<TImage>::ImageConstIterator(const TImage*, const typename TImage::RegionType&) [with TImage = itk::Image<double, 6u>]: Assertion `Region ImageRegion (0x7fffffffc150)
Dimension: 6
Index: [1, 1, 1, 1, 0, 0]
Size: [115, 107, 101, 1, 1, 1]
is outside of buffered region ImageRegion (0x208d298)
Dimension: 6
Index: [0, 0, 0, 0, 0, 0]
Size: [117, 109, 103, 1, 1, 1]
' failed.
That's wrong. If I look at the code in itkImageConstIterator.h:
175: const RegionType & bufferedRegion = m_Image->GetBufferedRegion();
176: itkAssertOrThrowMacro( ( bufferedRegion.IsInside(m_Region) ),
177: "Region " << m_Region << " is outside of buffered region " << bufferedRegion );
Something just aint right.
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110921/e6f38dc4/attachment.htm>
More information about the Insight-developers
mailing list