17 #ifndef __itkBinaryReconstructionLabelMapFilter_txx
18 #define __itkBinaryReconstructionLabelMapFilter_txx
26 template <
class TImage,
class TMarkerImage,
class TAttributeAccessor>
30 this->SetNumberOfRequiredInputs(2);
35 template <
class TImage,
class TMarkerImage,
class TAttributeAccessor>
44 typename LabelObjectType::LineContainerType::const_iterator lit;
45 typename LabelObjectType::LineContainerType & lineContainer = labelObject->GetLineContainer();
48 for( lit = lineContainer.begin(); lit != lineContainer.end(); lit++ )
50 const IndexType & firstIdx = lit->GetIndex();
51 unsigned long length = lit->GetLength();
53 long endIdx0 = firstIdx[0] + length;
54 for(
IndexType idx = firstIdx; idx[0]<endIdx0; idx[0]++ )
57 if( v == m_ForegroundValue )
60 accessor( labelObject,
true );
67 accessor( labelObject,
false );
72 template <
class TImage,
class TMarkerImage,
class TAttributeAccessor>
77 Superclass::PrintSelf(os, indent);