18 #ifndef itkObjectByObjectLabelMapFilter_h
19 #define itkObjectByObjectLabelMapFilter_h
77 template<
typename TInputImage,
typename TOutputImage=TInputImage,
78 typename TInputFilter=ImageToImageFilter<
79 Image< unsigned char, TInputImage::ImageDimension >,
80 Image< unsigned char, TOutputImage::ImageDimension > >,
81 class TOutputFilter=
typename TInputFilter::Superclass,
82 class TInternalInputImage=
typename TInputFilter::InputImageType,
83 class TInternalOutputImage=
typename TOutputFilter::OutputImageType >
105 typedef typename OutputImageType::SizeType
SizeType;
124 TInputImage::ImageDimension);
126 TOutputImage::ImageDimension);
128 TOutputImage::ImageDimension);
162 itkSetMacro(KeepLabels,
bool);
163 itkGetMacro(KeepLabels,
bool);
164 itkBooleanMacro(KeepLabels);
178 itkSetMacro(ConstrainPaddingToImage,
bool);
179 itkGetMacro(ConstrainPaddingToImage,
bool);
180 itkBooleanMacro(ConstrainPaddingToImage);
188 itkSetMacro(BinaryInternalOutput,
bool);
189 itkGetMacro(BinaryInternalOutput,
bool);
190 itkBooleanMacro(BinaryInternalOutput);
216 void operator=(const Self&);
254 #ifndef ITK_MANUAL_INSTANTIATION
255 #include "itkObjectByObjectLabelMapFilter.hxx"
const InputFilterType * GetFilter() const
InternalInputImageType::RegionType InternalRegionType
void SetOutputFilter(OutputFilterType *filter)
convert a labeled image to a label collection image
InputImageType::PixelType InputImagePixelType
ObjectByObjectLabelMapFilter Self
OutputImageType::Pointer OutputImagePointer
OutputFilterType::Pointer m_OutputFilter
ObjectByObjectLabelMapFilter()
virtual void GenerateData() override
OutputImageType::SizeType SizeType
LabelMapType::LabelObjectType LabelObjectType
bool m_ConstrainPaddingToImage
TInternalInputImage InternalInputImageType
Base class for all process objects that output image data.
void SetInputFilter(InputFilterType *filter)
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
InternalInputImageType::OffsetType InternalOffsetType
static const unsigned int OutputImageDimension
InputImageType::RegionType InputImageRegionType
~ObjectByObjectLabelMapFilter()
TInternalOutputImage InternalOutputImageType
InternalInputImageType::PixelType InternalInputPixelType
InternalInputImageType::SizeType InternalSizeType
InputImageType::Pointer InputImagePointer
InputImageType::ConstPointer InputImageConstPointer
InputFilterType::Pointer m_InputFilter
SelectType::Pointer m_Select
OutputImageType::RegionType OutputImageRegionType
Crop a LabelMap image to fit exactly the objects in the LabelMap.
Base class for filters that take an image as input and overwrite that image as the output...
TInputFilter InputFilterType
bool m_BinaryInternalOutput
remove the objects according to the value of their attribute
OutputImageType::ConstPointer OutputImageConstPointer
OutputImageType LabelMapType
TInputImage InputImageType
LI2LMType::Pointer m_LI2LM
InputImageType::PixelType InputImagePixelType
InputFilterType * GetFilter()
Label the connected components in a binary image and produce a collection of label objects...
LabelMapFilter< TInputImage, TOutputImage > Superclass
BI2LMType::Pointer m_BI2LM
Control indentation during Print() invocation.
OutputImageType::PixelType OutputImagePixelType
TOutputImage OutputImageType
TOutputFilter OutputFilterType
void SetFilter(InputFilterType *filter)
TOutputImage OutputImageType
InternalOutputImageType::PixelType InternalOutputPixelType
InputImagePixelType m_Label
ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce ...
static const unsigned int ImageDimension
InternalInputImageType::IndexType InternalIndexType
InternalOutputPixelType m_InternalForegroundValue
Convert a LabelMap to a binary image.
static const unsigned int InputImageDimension
LM2BIType::Pointer m_LM2BI