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);
111 itkGetConstMacro(Attribute, AttributeType);
112 itkSetMacro(Attribute, AttributeType);
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();
146 LabelObjectType *labelObject = it.GetLabelObject();
154 output2->AddLabelObject(labelObject);
155 output->RemoveLabel(label);
162 progress.CompletedPixel();
176 void operator=(const Self &) ITK_DELETE_FUNCTION;
180 #ifndef ITK_MANUAL_INSTANTIATION 181 #include "itkShapeOpeningLabelMapFilter.hxx" InPlaceLabelMapFilter< TImage > Superclass
ImageType::LabelObjectType LabelObjectType
~ShapeOpeningLabelMapFilter()
ShapeOpeningLabelMapFilter()
void GenerateData() override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
LabelObjectType::AttributeType AttributeType
void PrintSelf(std::ostream &os, Indent indent) const override
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.
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs() const
The number of defined Indexed outputs.
ImageType::Pointer ImagePointer
virtual void SetAttribute(AttributeType _arg)