[Insight-developers] ImageRegion bounds caching

M Stauffer (V) mstauff at verizon.net
Wed Feb 23 16:48:14 EST 2011


Hi,

I'd like to change ImageRegion to cache its bounds when its members
m_Size and/or m_Index are set, then compute ImageRegion::IsInside more
quickly by simple comparison against the bounds. As a reference, bounds
caching is done in itkImageFunction::SetInputImage, and used in
itkImageFunction::IsInside routines.

Since this is such a fundamental method, I'd like to check first if
there's something I'm missing?

Cheers,
Michael



More information about the Insight-developers mailing list