18#ifndef itkShapeOpeningLabelMapFilter_h
19#define itkShapeOpeningLabelMapFilter_h
48template <
typename TImage>
89 itkGetConstMacro(Lambda,
double);
90 itkSetMacro(Lambda,
double);
99 itkGetConstMacro(ReverseOrdering,
bool);
100 itkSetMacro(ReverseOrdering,
bool);
101 itkBooleanMacro(ReverseOrdering);
113 this->
SetAttribute(LabelObjectType::GetAttributeFromName(s));
124 template <
typename TAttributeAccessor>
134 itkAssertInDebugAndIgnoreInReleaseMacro(output2 !=
nullptr);
138 output2->SetBackgroundValue(output->GetBackgroundValue());
142 typename ImageType::Iterator it(output);
143 while (!it.IsAtEnd())
145 const typename LabelObjectType::LabelType label = it.GetLabel();
154 output2->AddLabelObject(labelObject);
155 output->RemoveLabel(label);
177#ifndef ITK_MANUAL_INSTANTIATION
178# include "itkShapeOpeningLabelMapFilter.hxx"
OutputImageType * GetOutput()
InPlaceLabelMapFilter()=default
void AllocateOutputs() override
Control indentation during Print() invocation.
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs() const
The number of defined Indexed outputs.
Implements progress tracking for a filter.
typename ImageType::ConstPointer ImageConstPointer
void TemplatedGenerateData(const TAttributeAccessor &accessor)
void GenerateData() override
ShapeOpeningLabelMapFilter Self
InPlaceLabelMapFilter< LabelMapType > Superclass
virtual void SetAttribute(AttributeType _arg)
void PrintSelf(std::ostream &os, Indent indent) const override
typename ImageType::IndexType IndexType
~ShapeOpeningLabelMapFilter() override=default
typename ImageType::LabelObjectType LabelObjectType
static constexpr unsigned int ImageDimension
typename ImageType::Pointer ImagePointer
AttributeType m_Attribute
ShapeOpeningLabelMapFilter()
void SetAttribute(const std::string &s)
typename LabelObjectType::AttributeType AttributeType
typename ImageType::PixelType PixelType
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....