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);
138 void SetFilter(InputFilterType * filter);
150 itkGetModifiableObjectMacro(InputFilter, InputFilterType );
153 itkGetModifiableObjectMacro(OutputFilter, OutputFilterType );
162 itkSetMacro(KeepLabels,
bool);
163 itkGetMacro(KeepLabels,
bool);
164 itkBooleanMacro(KeepLabels);
170 itkSetMacro(PadSize, SizeType);
171 itkGetMacro(PadSize, SizeType);
178 itkSetMacro(ConstrainPaddingToImage,
bool);
179 itkGetMacro(ConstrainPaddingToImage,
bool);
180 itkBooleanMacro(ConstrainPaddingToImage);
188 itkSetMacro(BinaryInternalOutput,
bool);
189 itkGetMacro(BinaryInternalOutput,
bool);
190 itkBooleanMacro(BinaryInternalOutput);
197 itkSetMacro(InternalForegroundValue, InternalOutputPixelType);
198 itkGetMacro(InternalForegroundValue, InternalOutputPixelType);
205 itkGetMacro(Label, InputImagePixelType);
216 void operator=(
const Self&) ITK_DELETE_FUNCTION;
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
itk::LabelMapToBinaryImageFilter< LabelMapType, InternalInputImageType > LM2BIType
InputImageType::PixelType InputImagePixelType
ObjectByObjectLabelMapFilter Self
OutputImageType::Pointer OutputImagePointer
itk::BinaryImageToLabelMapFilter< InternalOutputImageType, LabelMapType > BI2LMType
OutputFilterType::Pointer m_OutputFilter
ObjectByObjectLabelMapFilter()
virtual void GenerateData() override
itk::PadLabelMapFilter< LabelMapType > PadType
OutputImageType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
LabelMapType::LabelObjectType LabelObjectType
bool m_ConstrainPaddingToImage
TInternalInputImage InternalInputImageType
void SetInputFilter(InputFilterType *filter)
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
InternalInputImageType::OffsetType InternalOffsetType
static const unsigned int OutputImageDimension
InputImageType::RegionType InputImageRegionType
~ObjectByObjectLabelMapFilter()
TInternalOutputImage InternalOutputImageType
InternalInputImageType::PixelType InternalInputPixelType
itk::AutoCropLabelMapFilter< LabelMapType > CropType
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
void operator=(const Self &) ITK_DELETE_FUNCTION
OutputImageType LabelMapType
TInputImage InputImageType
LI2LMType::Pointer m_LI2LM
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
itk::LabelImageToLabelMapFilter< InternalOutputImageType, LabelMapType > LI2LMType
Control indentation during Print() invocation.
OutputImageType::PixelType OutputImagePixelType
TOutputFilter OutputFilterType
void SetFilter(InputFilterType *filter)
TOutputImage OutputImageType
InternalOutputImageType::PixelType InternalOutputPixelType
InputImagePixelType m_Label
void PrintSelf(std::ostream &os, Indent indent) const override
ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce ...
static const unsigned int ImageDimension
InternalInputImageType::IndexType InternalIndexType
itk::LabelSelectionLabelMapFilter< LabelMapType > SelectType
InternalOutputPixelType m_InternalForegroundValue
Convert a LabelMap to a binary image.
static const unsigned int InputImageDimension
LM2BIType::Pointer m_LM2BI