18 #ifndef itkAttributeKeepNObjectsLabelMapFilter_h
19 #define itkAttributeKeepNObjectsLabelMapFilter_h
41 template<
typename TImage,
typename TAttributeAccessor=
42 typename Functor::AttributeLabelObjectAccessor< typename TImage::LabelObjectType > >
65 itkStaticConstMacro(ImageDimension,
unsigned int,
66 TImage::ImageDimension);
75 #ifdef ITK_USE_CONCEPT_CHECKING
91 itkSetMacro( ReverseOrdering,
bool );
92 itkGetConstReferenceMacro( ReverseOrdering,
bool );
93 itkBooleanMacro( ReverseOrdering );
107 void GenerateData() ITK_OVERRIDE;
109 void PrintSelf(std::ostream& os,
Indent indent) const ITK_OVERRIDE;
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 )
128 return m_Accessor( a ) > m_Accessor( b );
145 #ifndef ITK_MANUAL_INSTANTIATION
146 #include "itkAttributeKeepNObjectsLabelMapFilter.hxx"
Light weight base class for most itk classes.
AttributeAccessorType::AttributeValueType AttributeValueType
ImageType::LabelObjectType LabelObjectType
~AttributeKeepNObjectsLabelMapFilter() override
AttributeAccessorType m_Accessor
SmartPointer< const Self > ConstPointer
ImageType::IndexType IndexType
SmartPointer< Self > Pointer
unsigned long SizeValueType
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...
AttributeAccessorType m_Accessor
TAttributeAccessor AttributeAccessorType
Control indentation during Print() invocation.
InPlaceLabelMapFilter< TImage > Superclass
bool operator()(const typename LabelObjectType::Pointer &a, const typename LabelObjectType::Pointer &b)
ImageType::PixelType PixelType
SizeValueType m_NumberOfObjects
ImageBaseType::IndexType IndexType
keep N objects according to their attribute value
ImageType::ConstPointer ImageConstPointer