[Insight-developers] ConstShapedNeighborhoodIterator::NeedToUseBoundary private?

Bradley Lowekamp blowekamp at mail.nih.gov
Mon Aug 24 09:33:08 EDT 2009


Hello,

	I have written a little filter using the  
ConstShapedNeighborhoodIterator. After extensive testing I am  
convinced that I know what I am iterating over been then then  
iterator, and I would like to force the  boundary condition off, for  
performance reasons. Unfortunately this is a private methods and I am  
unable to do so currently.

Was this a design discussion or an oversight?

If it was a oversight, I edited the file with:

diff -u -r1.15 itkConstShapedNeighborhoodIterator.h
--- Code/Common/itkConstShapedNeighborhoodIterator.h	7 Oct 2008  
12:04:18 -0000	1.15
+++ Code/Common/itkConstShapedNeighborhoodIterator.h	24 Aug 2009  
13:28:08 -0000
@@ -257,6 +257,8 @@
    Superclass::OverrideBoundaryCondition;
    Superclass::ResetBoundaryCondition;
    Superclass::GetBoundaryCondition;
+  Superclass::NeedToUseBoundaryConditionOn;
+  Superclass::NeedToUseBoundaryConditionOff;
    Superclass::Print;
    Superclass::operator-;

and it seems to meet my needs.


Thanks,
Brad

========================================================
Bradley Lowekamp
Lockheed Martin Contractor for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090824/b55ef0b4/attachment.htm>


More information about the Insight-developers mailing list