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 >
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);
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);
210 void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
212 virtual void GenerateData() ITK_OVERRIDE;
217 bool m_ConstrainPaddingToImage;
219 bool m_BinaryInternalOutput;
253 #ifndef ITK_MANUAL_INSTANTIATION
254 #include "itkObjectByObjectLabelMapFilter.hxx"
~ObjectByObjectLabelMapFilter() override
const InputFilterType * GetFilter() const
InternalInputImageType::RegionType InternalRegionType
convert a labeled image to a label collection image
InputImageType::PixelType InputImagePixelType
ObjectByObjectLabelMapFilter Self
OutputImageType::Pointer OutputImagePointer
OutputImageType::SizeType SizeType
LabelMapType::LabelObjectType LabelObjectType
TInternalInputImage InternalInputImageType
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
InternalInputImageType::OffsetType InternalOffsetType
InputImageType::RegionType InputImageRegionType
TInternalOutputImage InternalOutputImageType
InternalInputImageType::PixelType InternalInputPixelType
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
ImageBaseType::SizeType SizeType
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
ImageBaseType::IndexType IndexType
Convert a LabelMap to a binary image.