18 #ifndef itkLabelShapeKeepNObjectsImageFilter_h
19 #define itkLabelShapeKeepNObjectsImageFilter_h
50 template<
typename TInputImage >
76 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
77 static constexpr
unsigned int OutputImageDimension = TInputImage::ImageDimension;
78 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
84 Self::OutputImageDimension >;
98 #ifdef ITK_USE_CONCEPT_CHECKING
129 itkGetConstMacro(ReverseOrdering,
bool);
130 itkSetMacro(ReverseOrdering,
bool);
131 itkBooleanMacro(ReverseOrdering);
142 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
154 void GenerateInputRequestedRegion()
override;
157 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
161 void GenerateData()
override;
171 #ifndef ITK_MANUAL_INSTANTIATION
172 #include "itkLabelShapeKeepNObjectsImageFilter.hxx"
convert a labeled image to a label collection image
Light weight base class for most itk classes.
typename LabelObjectType::AttributeType AttributeType
unsigned long SizeValueType
typename InputImageType::PixelType InputImagePixelType
void SetAttribute(const std::string &s)
TInputImage InputImageType
AttributeType m_Attribute
SizeValueType m_NumberOfObjects
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::ConstPointer InputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
A Label object to store the common attributes related to the shape of the object. ...
typename InputImageType::RegionType InputImageRegionType
OutputImagePixelType m_BackgroundValue
Keep N objects according to their shape attributes.
keep N objects according to their shape attributes
TInputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
typename OutputImageType::PixelType OutputImagePixelType
Control indentation during Print() invocation.
Templated n-dimensional image to store labeled objects.
ImageBaseType::RegionType RegionType
typename OutputImageType::Pointer OutputImagePointer
#define itkConceptMacro(name, concept)
The valuator class for the ShapeLabelObject.
typename Superclass::AttributeType AttributeType
Base class for all data objects in ITK.
Templated n-dimensional image class.
Converts a LabelMap to a labeled image.