18 #ifndef itkLabelShapeKeepNObjectsImageFilter_h
19 #define itkLabelShapeKeepNObjectsImageFilter_h
50 template<
typename TInputImage >
75 TInputImage::ImageDimension);
77 TInputImage::ImageDimension);
79 TInputImage::ImageDimension);
85 typedef Image<
typename OutputImageType::PixelType,
100 #ifdef ITK_USE_CONCEPT_CHECKING
131 itkGetConstMacro(ReverseOrdering,
bool);
132 itkSetMacro(ReverseOrdering,
bool);
133 itkBooleanMacro(ReverseOrdering);
167 void operator=(const Self &);
176 #ifndef ITK_MANUAL_INSTANTIATION
177 #include "itkLabelShapeKeepNObjectsImageFilter.hxx"
OutputImageType::Pointer OutputImagePointer
InputImageType::PixelType InputImagePixelType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
convert a labeled image to a label collection image
OutputImageType::RegionType OutputImageRegionType
Light weight base class for most itk classes.
TInputImage OutputImageType
ShapeLabelObject< InputImagePixelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
static const unsigned int ImageDimension
virtual void SetAttribute(AttributeType _arg)
SmartPointer< const Self > ConstPointer
InputImageType::ConstPointer InputImageConstPointer
void SetAttribute(const std::string &s)
OutputImageType::ConstPointer OutputImageConstPointer
TInputImage InputImageType
OutputImageType::PixelType OutputImagePixelType
AttributeType m_Attribute
void GenerateInputRequestedRegion() override
LabelShapeKeepNObjectsImageFilter()
static const unsigned int OutputImageDimension
unsigned long SizeValueType
void EnlargeOutputRequestedRegion(DataObject *) override
SizeValueType m_NumberOfObjects
InputImageType::RegionType InputImageRegionType
ImageToImageFilter< TInputImage, TInputImage > Superclass
ShapeKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
InputImageType::Pointer InputImagePointer
Superclass::AttributeType AttributeType
void PrintSelf(std::ostream &os, Indent indent) const override
static AttributeType GetAttributeFromName(const std::string &s)
A Label object to store the common attributes related to the shape of the object. ...
~LabelShapeKeepNObjectsImageFilter()
OutputImagePixelType m_BackgroundValue
Keep N objects according to their shape attributes.
keep N objects according to their shape attributes
static const unsigned int InputImageDimension
SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Templated n-dimensional image to store labeled objects.
void GenerateData() override
LabelObjectType::AttributeType AttributeType
LabelMap< LabelObjectType > LabelMapType
#define itkConceptMacro(name, concept)
The valuator class for the ShapeLabelObject.
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
Base class for all data objects in ITK.
Templated n-dimensional image class.
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
Converts a LabelMap to a labeled image.
LabelShapeKeepNObjectsImageFilter Self
Image< typename OutputImageType::PixelType, itkGetStaticConstMacro(OutputImageDimension) > ShapeLabelFilterOutput