18 #ifndef itkAttributeKeepNObjectsLabelMapFilter_h
19 #define itkAttributeKeepNObjectsLabelMapFilter_h
41 template<
typename TImage,
typename TAttributeAccessor=
42 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
66 TImage::ImageDimension);
75 #ifdef ITK_USE_CONCEPT_CHECKING
91 itkSetMacro( ReverseOrdering,
bool );
92 itkGetConstReferenceMacro( ReverseOrdering,
bool );
93 itkBooleanMacro( ReverseOrdering );
114 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
116 return m_Accessor( a ) < m_Accessor( b );
126 bool operator()(
const typename LabelObjectType::Pointer & a,
const typename LabelObjectType::Pointer & b )
146 #ifndef ITK_MANUAL_INSTANTIATION
147 #include "itkAttributeKeepNObjectsLabelMapFilter.hxx"
Light weight base class for most itk classes.
AttributeAccessorType::AttributeValueType AttributeValueType
ImageType::LabelObjectType LabelObjectType
AttributeAccessorType m_Accessor
SmartPointer< const Self > ConstPointer
~AttributeKeepNObjectsLabelMapFilter()
ImageType::IndexType IndexType
SmartPointer< Self > Pointer
unsigned long SizeValueType
AttributeKeepNObjectsLabelMapFilter()
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
AttributeKeepNObjectsLabelMapFilter Self
ImageType::Pointer ImagePointer
Base class for filters that takes an image as input and overwrites that image as the output...
void GenerateData() override
AttributeAccessorType m_Accessor
TAttributeAccessor AttributeAccessorType
Control indentation during Print() invocation.
void operator=(const Self &)
InPlaceLabelMapFilter< TImage > Superclass
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
ImageType::PixelType PixelType
static const unsigned int ImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
SizeValueType m_NumberOfObjects
keep N objects according to their attribute value
ImageType::ConstPointer ImageConstPointer