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 >
125 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
126 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
127 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
139 return this->m_InputFilter;
144 return this->m_InputFilter;
147 void SetInputFilter( InputFilterType * filter );
148 itkGetModifiableObjectMacro(InputFilter, InputFilterType );
150 void SetOutputFilter( OutputFilterType * filter );
151 itkGetModifiableObjectMacro(OutputFilter, OutputFilterType );
160 itkSetMacro(KeepLabels,
bool);
161 itkGetMacro(KeepLabels,
bool);
162 itkBooleanMacro(KeepLabels);
176 itkSetMacro(ConstrainPaddingToImage,
bool);
177 itkGetMacro(ConstrainPaddingToImage,
bool);
178 itkBooleanMacro(ConstrainPaddingToImage);
186 itkSetMacro(BinaryInternalOutput,
bool);
187 itkGetMacro(BinaryInternalOutput,
bool);
188 itkBooleanMacro(BinaryInternalOutput);
195 itkSetMacro(InternalForegroundValue, InternalOutputPixelType);
196 itkGetMacro(InternalForegroundValue, InternalOutputPixelType);
203 itkGetMacro(Label, InputImagePixelType);
208 void PrintSelf(std::ostream& os,
Indent indent)
const override;
210 void GenerateData()
override;
249 #ifndef ITK_MANUAL_INSTANTIATION
250 #include "itkObjectByObjectLabelMapFilter.hxx"
const InputFilterType * GetFilter() const
convert a labeled image to a label collection image
typename OutputImageType::Pointer OutputImagePointer
TInternalOutputImage InternalOutputImageType
typename InternalInputImageType::SizeType InternalSizeType
OutputFilterType::Pointer m_OutputFilter
OutputImageType LabelMapType
typename InputImageType::LabelObjectType LabelObjectType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename InternalInputImageType::RegionType InternalRegionType
typename InternalInputImageType::PixelType InternalInputPixelType
bool m_ConstrainPaddingToImage
Base class for all process objects that output image data.
TOutputFilter OutputFilterType
TInputImage InputImageType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InternalInputImageType::IndexType InternalIndexType
typename InternalInputImageType::OffsetType InternalOffsetType
typename OutputImageType::PixelType OutputImagePixelType
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
InputFilterType::Pointer m_InputFilter
SelectType::Pointer m_Select
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...
bool m_BinaryInternalOutput
remove the objects according to the value of their attribute
typename OutputImageType::SizeType SizeType
TInternalInputImage InternalInputImageType
LI2LMType::Pointer m_LI2LM
TInputFilter InputFilterType
InputFilterType * GetFilter()
typename InputImageType::RegionType InputImageRegionType
Label the connected components in a binary image and produce a collection of label objects...
BI2LMType::Pointer m_BI2LM
Control indentation during Print() invocation.
ImageBaseType::RegionType RegionType
InputImagePixelType m_Label
typename InputImageType::ConstPointer InputImageConstPointer
ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce ...
InternalOutputPixelType m_InternalForegroundValue
Convert a LabelMap to a binary image.
typename InternalOutputImageType::PixelType InternalOutputPixelType
LM2BIType::Pointer m_LM2BI