18 #ifndef itkLabelShapeKeepNObjectsImageFilter_h
19 #define itkLabelShapeKeepNObjectsImageFilter_h
50 template<
typename TInputImage >
74 itkStaticConstMacro(InputImageDimension,
unsigned int,
75 TInputImage::ImageDimension);
76 itkStaticConstMacro(OutputImageDimension,
unsigned int,
77 TInputImage::ImageDimension);
78 itkStaticConstMacro(ImageDimension,
unsigned int,
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);
144 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
151 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
156 void GenerateInputRequestedRegion() ITK_OVERRIDE;
159 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
163 void GenerateData() ITK_OVERRIDE;
170 bool m_ReverseOrdering;
175 #ifndef ITK_MANUAL_INSTANTIATION
176 #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
SmartPointer< const Self > ConstPointer
InputImageType::ConstPointer InputImageConstPointer
void SetAttribute(const std::string &s)
OutputImageType::ConstPointer OutputImageConstPointer
TInputImage InputImageType
OutputImageType::PixelType OutputImagePixelType
unsigned long SizeValueType
~LabelShapeKeepNObjectsImageFilter() override
InputImageType::RegionType InputImageRegionType
ImageToImageFilter< TInputImage, TInputImage > Superclass
ShapeKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
InputImageType::Pointer InputImagePointer
Superclass::AttributeType AttributeType
A Label object to store the common attributes related to the shape of the object. ...
Keep N objects according to their shape attributes.
keep N objects according to their shape attributes
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.
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