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 !=
NULL);
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()
LabelObjectType::AttributeType AttributeType
ImageType::PixelType PixelType
AttributeType m_Attribute
static const unsigned int ImageDimension
ImageType::ConstPointer ImageConstPointer
OutputImageType * GetOutput(void)
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 PrintSelf(std::ostream &os, Indent indent) const
void SetAttribute(const std::string &s)
Implements progress tracking for a filter.
virtual void AllocateOutputs()
void TemplatedGenerateData(const TAttributeAccessor &accessor)
Control indentation during Print() invocation.
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs() const
ImageType::Pointer ImagePointer
virtual void SetAttribute(AttributeType _arg)