18 #ifndef itkAttributeUniqueLabelMapFilter_h
19 #define itkAttributeUniqueLabelMapFilter_h
45 template<
typename TImage,
typename TAttributeAccessor=
46 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
68 typedef typename LabelObjectType::LineType
LineType;
71 itkStaticConstMacro(ImageDimension,
unsigned int,
72 TImage::ImageDimension);
81 #ifdef ITK_USE_CONCEPT_CHECKING
97 itkSetMacro( ReverseOrdering,
bool );
98 itkGetConstReferenceMacro( ReverseOrdering,
bool );
99 itkBooleanMacro( ReverseOrdering );
106 void GenerateData() ITK_OVERRIDE;
108 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
110 bool m_ReverseOrdering;
117 typedef typename LabelObjectType::LineType
LineType;
122 this->labelObject = lo;
133 for(
int i=ImageDimension-1; i>=0; i-- )
135 if( lla.
line.GetIndex()[i] > llb.
line.GetIndex()[i] )
139 else if( lla.
line.GetIndex()[i] < llb.
line.GetIndex()[i] )
152 #ifndef ITK_MANUAL_INSTANTIATION
153 #include "itkAttributeUniqueLabelMapFilter.hxx"
Light weight base class for most itk classes.
TAttributeAccessor AttributeAccessorType
bool operator()(const LineOfLabelObject &lla, const LineOfLabelObject &llb)
LabelObjectType * labelObject
~AttributeUniqueLabelMapFilter() override
ImageType::ConstPointer ImageConstPointer
LabelObjectType::LineType LineType
LabelObjectType::LabelType AttributeValueType
Make sure that the objects are not overlapping.
ImageType::LabelObjectType LabelObjectType
ImageType::IndexType IndexType
Base class for filters that takes an image as input and overwrites that image as the output...
LineOfLabelObject(const LineType l, LabelObjectType *lo)
LabelObjectType::LineType LineType
SmartPointer< Self > Pointer
AttributeAccessorType::AttributeValueType AttributeValueType
ImageType::PixelType PixelType
InPlaceLabelMapFilter< TImage > Superclass
Control indentation during Print() invocation.
AttributeUniqueLabelMapFilter Self
ImageType::Pointer ImagePointer
ImageBaseType::IndexType IndexType
SmartPointer< const Self > ConstPointer