18#ifndef itkAttributeSelectionLabelMapFilter_h
19#define itkAttributeSelectionLabelMapFilter_h
50template <
typename TImage,
51 typename TAttributeAccessor =
52 typename Functor::AttributeLabelObjectAccessor<typename TImage::LabelObjectType>>
78 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
86#ifdef ITK_USE_CONCEPT_CHECKING
103 return m_AttributeSet;
108 m_AttributeSet = set;
117 itkGetConstMacro(Exclude,
bool);
118 itkSetMacro(Exclude,
bool);
119 itkBooleanMacro(Exclude);
126 this->ClearAttributeSet();
127 this->AddAttribute(attr);
134 if (!m_AttributeSet.empty())
136 m_AttributeSet.clear();
144 const typename AttributeSetType::size_type size = m_AttributeSet.size();
145 m_AttributeSet.insert(attr);
146 if (size != m_AttributeSet.size())
170#ifndef ITK_MANUAL_INSTANTIATION
171# include "itkAttributeSelectionLabelMapFilter.hxx"
Remove the objects according to the value of their attribute.
typename ImageType::Pointer ImagePointer
TAttributeAccessor AttributeAccessorType
void GenerateData() override
typename ImageType::ConstPointer ImageConstPointer
typename ImageType::IndexType IndexType
typename ImageType::PixelType PixelType
void AddAttribute(const AttributeValueType &attr)
const AttributeSetType & GetAttributeSet() const
AttributeSelectionLabelMapFilter()
void PrintSelf(std::ostream &os, Indent indent) const override
void SetAttributeSet(const AttributeSetType &set)
typename std::set< AttributeValueType > AttributeSetType
typename ImageType::LabelObjectType LabelObjectType
typename AttributeAccessorType::AttributeValueType AttributeValueType
void SetAttribute(const AttributeValueType &attr)
~AttributeSelectionLabelMapFilter() override=default
Base class for filters that takes an image as input and overwrites that image as the output.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....