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 )
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
void PrintSelf(std::ostream &os, Indent indent) const
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.
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
SizeValueType m_NumberOfObjects
keep N objects according to their attribute value
ImageType::ConstPointer ImageConstPointer