18 #ifndef itkShapeOpeningLabelMapFilter_h
19 #define itkShapeOpeningLabelMapFilter_h
48 template<
typename TImage >
78 #ifdef ITK_USE_CONCEPT_CHECKING
92 itkGetConstMacro(Lambda,
double);
93 itkSetMacro(Lambda,
double);
102 itkGetConstMacro(ReverseOrdering,
bool);
103 itkSetMacro(ReverseOrdering,
bool);
104 itkBooleanMacro(ReverseOrdering);
115 this->
SetAttribute( LabelObjectType::GetAttributeFromName(s) );
125 template< typename TAttributeAccessor >
134 itkAssertInDebugAndIgnoreInReleaseMacro(output2 != ITK_NULLPTR);
138 output2->SetBackgroundValue( output->GetBackgroundValue() );
142 typename ImageType::Iterator it( output );
143 while ( ! it.IsAtEnd() )
145 typename LabelObjectType::LabelType label = it.GetLabel();
154 output2->AddLabelObject(labelObject);
155 output->RemoveLabel(label);
162 progress.CompletedPixel();
180 #ifndef ITK_MANUAL_INSTANTIATION
181 #include "itkShapeOpeningLabelMapFilter.hxx"
InPlaceLabelMapFilter< TImage > Superclass
void operator=(const Self &)
ImageType::LabelObjectType LabelObjectType
Light weight base class for most itk classes.
~ShapeOpeningLabelMapFilter()
ShapeOpeningLabelMapFilter()
void GenerateData() override
LabelObjectType::AttributeType AttributeType
virtual void AllocateOutputs() override
ImageType::PixelType PixelType
AttributeType m_Attribute
static const unsigned int ImageDimension
ImageType::ConstPointer ImageConstPointer
Remove objects according to the value of their shape attribute.
SmartPointer< const Self > ConstPointer
Base class for filters that takes an image as input and overwrites that image as the output...
ImageType::IndexType IndexType
SmartPointer< Self > Pointer
ShapeOpeningLabelMapFilter Self
void SetAttribute(const std::string &s)
Implements progress tracking for a filter.
void TemplatedGenerateData(const TAttributeAccessor &accessor)
OutputImageType * GetOutput()
Control indentation during Print() invocation.
void PrintSelf(std::ostream &os, Indent indent) const override
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs() const
The number of defined Indexed outputs.
ImageType::Pointer ImagePointer
virtual void SetAttribute(AttributeType _arg)