Notes |
|
(0016288)
|
Luis Ibanez
|
2009-05-05 11:07
|
|
Suggested patch:
Index: itkImageConstIterator.h
===================================================================
RCS file: /cvsroot/Insight/Insight/Code/Common/itkImageConstIterator.h,v
retrieving revision 1.23
diff -r1.23 itkImageConstIterator.h
175a176,183
> const RegionType & bufferedRegion = m_Image->GetBufferedRegion();
>
> if( ! bufferedRegion.IsInside( m_Region ) )
> {
> itkGenericExceptionMacro("Region " << m_Region
> << " is outside of buffered region " << bufferedRegion );
> }
>
Index: itkImageConstIteratorWithIndex.txx
===================================================================
RCS file: /cvsroot/Insight/Insight/Code/Common/itkImageConstIteratorWithIndex.txx,v
retrieving revision 1.27
diff -r1.27 itkImageConstIteratorWithIndex.txx
84a85,92
> const RegionType & bufferedRegion = m_Image->GetBufferedRegion();
>
> if( ! bufferedRegion.IsInside( m_Region ) )
> {
> itkGenericExceptionMacro("Region " << m_Region
> << " is outside of buffered region " << bufferedRegion );
> }
> |
|
|
(0016289)
|
Luis Ibanez
|
2009-05-05 11:17
|
|
|
|
(0022979)
|
Luis Ibanez
|
2010-11-07 01:57
|
|
The following expression is now in itkImageConstIterator.h
lines 175-180:
if ( region.GetNumberOfPixels() > 0 ) // If region is non-empty
{
const RegionType & bufferedRegion = m_Image->GetBufferedRegion();
itkAssertOrThrowMacro( ( bufferedRegion.IsInside(m_Region) ),
"Region " << m_Region << " is outside of buffered region " << bufferedRegion );
} |
|