18 #ifndef itkBinaryShapeKeepNObjectsImageFilter_h
19 #define itkBinaryShapeKeepNObjectsImageFilter_h
46 template<
typename TInputImage >
70 itkStaticConstMacro(InputImageDimension,
unsigned int,
71 TInputImage::ImageDimension);
72 itkStaticConstMacro(OutputImageDimension,
unsigned int,
73 TInputImage::ImageDimension);
74 itkStaticConstMacro(ImageDimension,
unsigned int,
75 TInputImage::ImageDimension);
103 itkSetMacro(FullyConnected,
bool);
104 itkGetConstReferenceMacro(FullyConnected,
bool);
105 itkBooleanMacro(FullyConnected);
108 #ifdef ITK_USE_CONCEPT_CHECKING
147 itkGetConstMacro(ReverseOrdering,
bool);
148 itkSetMacro(ReverseOrdering,
bool);
149 itkBooleanMacro(ReverseOrdering);
160 this->SetAttribute( LabelObjectType::GetAttributeFromName(s) );
167 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
172 void GenerateInputRequestedRegion() ITK_OVERRIDE;
175 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
179 void GenerateData() ITK_OVERRIDE;
184 bool m_FullyConnected;
188 bool m_ReverseOrdering;
193 #ifndef ITK_MANUAL_INSTANTIATION
194 #include "itkBinaryShapeKeepNObjectsImageFilter.hxx"
OutputImageType::Pointer OutputImagePointer
OutputImageType::RegionType OutputImageRegionType
Light weight base class for most itk classes.
InputImageType::ConstPointer InputImageConstPointer
TInputImage OutputImageType
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
ShapeKeepNObjectsLabelMapFilter< LabelMapType > KeepNObjectsType
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
SmartPointer< const Self > ConstPointer
LabelObjectType::AttributeType AttributeType
unsigned long SizeValueType
ImageToImageFilter< TInputImage, TInputImage > Superclass
ShapeLabelObject< LabelType, itkGetStaticConstMacro(ImageDimension) > LabelObjectType
Superclass::AttributeType AttributeType
InputImageType::Pointer InputImagePointer
A Label object to store the common attributes related to the shape of the object. ...
LabelMapToBinaryImageFilter< LabelMapType, OutputImageType > BinarizerType
Keep N objects according to their shape attributes.
BinaryShapeKeepNObjectsImageFilter Self
Label the connected components in a binary image and produce a collection of label objects...
LabelMap< LabelObjectType > LabelMapType
OutputImageType::ConstPointer OutputImageConstPointer
Base class for filters that take an image as input and produce an image as output.
InputImageType::PixelType InputImagePixelType
Control indentation during Print() invocation.
~BinaryShapeKeepNObjectsImageFilter() override
Templated n-dimensional image to store labeled objects.
InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
#define itkConceptMacro(name, concept)
keep N objects according to their shape attributes
The valuator class for the ShapeLabelObject.
void SetAttribute(const std::string &s)
Base class for all data objects in ITK.
Templated n-dimensional image class.
OutputImageType::PixelType OutputImagePixelType
Convert a LabelMap to a binary image.
SmartPointer< Self > Pointer
Image< typename OutputImageType::PixelType, itkGetStaticConstMacro(OutputImageDimension) > ShapeLabelFilterOutput