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 > >,
82 class TInternalInputImage=
typename TInputFilter::InputImageType,
83 class TInternalOutputImage=
typename TOutputFilter::OutputImageType >
105 typedef typename OutputImageType::SizeType
SizeType;
123 itkStaticConstMacro(InputImageDimension,
unsigned int,
124 TInputImage::ImageDimension);
125 itkStaticConstMacro(OutputImageDimension,
unsigned int,
126 TOutputImage::ImageDimension);
127 itkStaticConstMacro(ImageDimension,
unsigned int,
128 TOutputImage::ImageDimension);
141 return this->m_InputFilter;
146 return this->m_InputFilter;
149 void SetInputFilter( InputFilterType * filter );
150 itkGetModifiableObjectMacro(InputFilter, InputFilterType );
152 void SetOutputFilter( OutputFilterType * filter );
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);
212 virtual void GenerateData() ITK_OVERRIDE;
217 bool m_ConstrainPaddingToImage;
219 bool m_BinaryInternalOutput;
253 #ifndef ITK_MANUAL_INSTANTIATION
254 #include "itkObjectByObjectLabelMapFilter.hxx"
const InputFilterType * GetFilter() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
InternalInputImageType::RegionType InternalRegionType
convert a labeled image to a label collection image
InputImageType::PixelType InputImagePixelType
ObjectByObjectLabelMapFilter Self
OutputImageType::Pointer OutputImagePointer
class ITK_FORCE_EXPORT_MACRO(ITKCommon) DataObject typedef Object Superclass
OutputImageType::SizeType SizeType
LabelMapType::LabelObjectType LabelObjectType
TInternalInputImage InternalInputImageType
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
InternalInputImageType::OffsetType InternalOffsetType
InputImageType::RegionType InputImageRegionType
~ObjectByObjectLabelMapFilter()
TInternalOutputImage InternalOutputImageType
InternalInputImageType::PixelType InternalInputPixelType
SmartPointer< const Self > ConstPointer
InternalInputImageType::SizeType InternalSizeType
InputImageType::Pointer InputImagePointer
InputImageType::ConstPointer InputImageConstPointer
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
remove the objects according to the value of their attribute
OutputImageType::ConstPointer OutputImageConstPointer
OutputImageType LabelMapType
TInputImage InputImageType
InputImageType::PixelType InputImagePixelType
InputFilterType * GetFilter()
Label the connected components in a binary image and produce a collection of label objects...
LabelMapFilter< TInputImage, TOutputImage > Superclass
Control indentation during Print() invocation.
OutputImageType::PixelType OutputImagePixelType
TOutputImage OutputImageType
TOutputFilter OutputFilterType
TOutputImage OutputImageType
InternalOutputImageType::PixelType InternalOutputPixelType
ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce ...
InternalInputImageType::IndexType InternalIndexType
Convert a LabelMap to a binary image.