18#ifndef itkObjectByObjectLabelMapFilter_h
19#define itkObjectByObjectLabelMapFilter_h
79template <
typename TInputImage,
80 typename TOutputImage = TInputImage,
81 typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>,
82 Image<unsigned char, TOutputImage::ImageDimension>>,
84 class TInternalInputImage =
typename TInputFilter::InputImageType,
85 class TInternalOutputImage =
typename TOutputFilter::OutputImageType>
126 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
127 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
128 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
141 return this->m_InputFilter;
147 return this->m_InputFilter;
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);
214 PrintSelf(std::ostream & os,
Indent indent)
const override;
217 GenerateData()
override;
220 bool m_ConstrainPaddingToImage{};
222 bool m_BinaryInternalOutput{};
256#ifndef ITK_MANUAL_INSTANTIATION
257# include "itkObjectByObjectLabelMapFilter.hxx"
Crop a LabelMap image to fit exactly the objects in the LabelMap.
Label the connected components in a binary image and produce a collection of label objects.
Control indentation during Print() invocation.
convert a labeled image to a label collection image
Base class for filters that take an image as input and overwrite that image as the output.
Convert a LabelMap to a binary image.
remove the objects according to the value of their attribute
Light weight base class for most itk classes.
ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce ...
typename InternalInputImageType::RegionType InternalRegionType
typename InputImageType::RegionType InputImageRegionType
TInternalInputImage InternalInputImageType
typename InternalInputImageType::PixelType InternalInputPixelType
typename OutputImageType::ConstPointer OutputImageConstPointer
TOutputFilter OutputFilterType
typename OutputImageType::SizeType SizeType
TOutputImage OutputImageType
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::ConstPointer InputImageConstPointer
TInputImage InputImageType
TInternalOutputImage InternalOutputImageType
typename InternalInputImageType::SizeType InternalSizeType
typename OutputImageType::Pointer OutputImagePointer
OutputImageType LabelMapType
typename LabelMapType::LabelObjectType LabelObjectType
TInputFilter InputFilterType
typename InternalInputImageType::OffsetType InternalOffsetType
typename InternalInputImageType::IndexType InternalIndexType
typename InternalOutputImageType::PixelType InternalOutputPixelType
typename InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....