18 #ifndef itkAttributeSelectionLabelMapFilter_h
19 #define itkAttributeSelectionLabelMapFilter_h
49 template<
typename TImage,
typename TAttributeAccessor=
50 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
75 itkStaticConstMacro(ImageDimension,
unsigned int,
76 TImage::ImageDimension);
85 #ifdef ITK_USE_CONCEPT_CHECKING
101 return m_AttributeSet;
105 m_AttributeSet = set;
114 itkGetConstMacro( Exclude,
bool );
115 itkSetMacro( Exclude,
bool );
116 itkBooleanMacro( Exclude );
122 this->ClearAttributeSet();
123 this->AddAttribute( attr );
129 if( ! m_AttributeSet.empty() )
131 m_AttributeSet.clear();
138 const typename AttributeSetType::size_type size = m_AttributeSet.size();
139 m_AttributeSet.insert( attr );
140 if( size != m_AttributeSet.size() )
150 void GenerateData() ITK_OVERRIDE;
152 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkAttributeSelectionLabelMapFilter.hxx"
ImageType::PixelType PixelType
Light weight base class for most itk classes.
InPlaceLabelMapFilter< TImage > Superclass
void SetAttribute(const AttributeValueType &attr)
const AttributeSetType & GetAttributeSet() const
ImageType::IndexType IndexType
ImageType::ConstPointer ImageConstPointer
AttributeSelectionLabelMapFilter Self
LabelObjectType::LabelType AttributeValueType
TAttributeAccessor AttributeAccessorType
ImageType::LabelObjectType LabelObjectType
~AttributeSelectionLabelMapFilter() override
SmartPointer< const Self > ConstPointer
Base class for filters that takes an image as input and overwrites that image as the output...
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
void SetAttributeSet(const AttributeSetType &set)
AttributeAccessorType::AttributeValueType AttributeValueType
remove the objects according to the value of their attribute
void AddAttribute(const AttributeValueType &attr)
ImageBaseType::IndexType IndexType
std::set< AttributeValueType > AttributeSetType
ImageType::Pointer ImagePointer