18#ifndef itkObjectByObjectLabelMapFilter_h
19#define itkObjectByObjectLabelMapFilter_h
79template <
typename TInputImage,
80 typename TOutputImage = TInputImage,
83 class TOutputFilter =
typename TInputFilter::Superclass,
84 class TInternalInputImage =
typename TInputFilter::InputImageType,
85 class TInternalOutputImage =
typename TOutputFilter::OutputImageType>
108 using SizeType =
typename OutputImageType::SizeType;
144 const InputFilterType *
165 itkSetMacro(KeepLabels,
bool);
166 itkGetMacro(KeepLabels,
bool);
167 itkBooleanMacro(KeepLabels);
181 itkSetMacro(ConstrainPaddingToImage,
bool);
182 itkGetMacro(ConstrainPaddingToImage,
bool);
183 itkBooleanMacro(ConstrainPaddingToImage);
191 itkSetMacro(BinaryInternalOutput,
bool);
192 itkGetMacro(BinaryInternalOutput,
bool);
193 itkBooleanMacro(BinaryInternalOutput);
256#ifndef ITK_MANUAL_INSTANTIATION
257# include "itkObjectByObjectLabelMapFilter.hxx"
Crop a LabelMap image to fit exactly the objects in the LabelMap.
SmartPointer< Self > Pointer
Label the connected components in a binary image and produce a collection of label objects.
SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Control indentation during Print() invocation.
convert a labeled image to a label collection image
SmartPointer< Self > Pointer
Convert a LabelMap to a binary image.
SmartPointer< Self > Pointer
remove the objects according to the value of their attribute
SmartPointer< Self > Pointer
typename InternalInputImageType::RegionType InternalRegionType
typename InputImageType::RegionType InputImageRegionType
itk::BinaryImageToLabelMapFilter< InternalOutputImageType, LabelMapType > BI2LMType
BI2LMType::Pointer m_BI2LM
TInternalInputImage InternalInputImageType
itk::LabelImageToLabelMapFilter< InternalOutputImageType, LabelMapType > LI2LMType
itk::LabelMapToBinaryImageFilter< LabelMapType, InternalInputImageType > LM2BIType
typename InternalInputImageType::PixelType InternalInputPixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
TOutputFilter OutputFilterType
~ObjectByObjectLabelMapFilter() override=default
LI2LMType::Pointer m_LI2LM
static constexpr unsigned int InputImageDimension
static constexpr unsigned int ImageDimension
LabelMapFilter< TInputImage, TOutputImage > Superclass
OutputFilterType::Pointer m_OutputFilter
bool m_BinaryInternalOutput
bool m_ConstrainPaddingToImage
typename OutputImageType::SizeType SizeType
itk::LabelSelectionLabelMapFilter< LabelMapType > SelectType
TOutputImage OutputImageType
itk::PadLabelMapFilter< LabelMapType > PadType
typename OutputImageType::RegionType OutputImageRegionType
void SetFilter(InputFilterType *filter)
itk::AutoCropLabelMapFilter< LabelMapType > CropType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
TInputImage InputImageType
const InputFilterType * GetFilter() const
void SetInputFilter(InputFilterType *filter)
TInternalOutputImage InternalOutputImageType
typename InternalInputImageType::SizeType InternalSizeType
typename OutputImageType::Pointer OutputImagePointer
OutputImageType LabelMapType
typename LabelMapType::LabelObjectType LabelObjectType
InputFilterType * GetFilter()
TInputFilter InputFilterType
SmartPointer< const Self > ConstPointer
void SetOutputFilter(OutputFilterType *filter)
void PrintSelf(std::ostream &os, Indent indent) const override
InputFilterType::Pointer m_InputFilter
typename InternalInputImageType::OffsetType InternalOffsetType
ObjectByObjectLabelMapFilter Self
static constexpr unsigned int OutputImageDimension
SmartPointer< Self > Pointer
typename InternalInputImageType::IndexType InternalIndexType
ObjectByObjectLabelMapFilter()
SelectType::Pointer m_Select
typename InternalOutputImageType::PixelType InternalOutputPixelType
void GenerateData() override
InputImagePixelType m_Label
InternalOutputPixelType m_InternalForegroundValue
LM2BIType::Pointer m_LM2BI
typename InputImageType::PixelType InputImagePixelType
SmartPointer< Self > Pointer
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....