ITK  5.1.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage > Class Template Reference

#include <itkObjectByObjectLabelMapFilter.h>

+ Inheritance diagram for itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >:
+ Collaboration diagram for itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using InputFilterType = TInputFilter
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using InternalIndexType = typename InternalInputImageType::IndexType
 
using InternalInputImageType = TInternalInputImage
 
using InternalInputPixelType = typename InternalInputImageType::PixelType
 
using InternalOffsetType = typename InternalInputImageType::OffsetType
 
using InternalOutputImageType = TInternalOutputImage
 
using InternalOutputPixelType = typename InternalOutputImageType::PixelType
 
using InternalRegionType = typename InternalInputImageType::RegionType
 
using InternalSizeType = typename InternalInputImageType::SizeType
 
using LabelMapType = OutputImageType
 
using LabelObjectType = typename LabelMapType::LabelObjectType
 
using OutputFilterType = TOutputFilter
 
using OutputImageConstPointer = typename OutputImageType::ConstPointer
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer< Self >
 
using Self = ObjectByObjectLabelMapFilter
 
using SizeType = typename OutputImageType::SizeType
 
using Superclass = LabelMapFilter< TInputImage, TOutputImage >
 
- Public Types inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
using ConstPointer = SmartPointer< const Self >
 
using InputImageConstPointer = typename Superclass::InputImageConstPointer
 
using InputImagePixelType = typename Superclass::InputImagePixelType
 
using InputImagePointer = typename Superclass::InputImagePointer
 
using InputImageRegionType = typename Superclass::InputImageRegionType
 
using InputImageType = typename Superclass::InputImageType
 
using LabelObjectType = typename InputImageType::LabelObjectType
 
using OutputImageConstPointer = typename OutputImageType::ConstPointer
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer< Self >
 
using Self = LabelMapFilter
 
using Superclass = ImageToImageFilter< TInputImage, TOutputImage >
 
- Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using ConstPointer = SmartPointer< const Self >
 
using InputImageConstPointer = typename InputImageType::ConstPointer
 
using InputImagePixelType = typename InputImageType::PixelType
 
using InputImagePointer = typename InputImageType::Pointer
 
using InputImageRegionType = typename InputImageType::RegionType
 
using InputImageType = TInputImage
 
using OutputImagePixelType = typename Superclass::OutputImagePixelType
 
using OutputImageRegionType = typename Superclass::OutputImageRegionType
 
using Pointer = SmartPointer< Self >
 
using Self = ImageToImageFilter
 
using Superclass = ImageSource< TOutputImage >
 
- Public Types inherited from itk::ImageSource< TOutputImage >
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = Superclass::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType
 
using OutputImagePixelType = typename OutputImageType::PixelType
 
using OutputImagePointer = typename OutputImageType::Pointer
 
using OutputImageRegionType = typename OutputImageType::RegionType
 
using OutputImageType = TOutputImage
 
using Pointer = SmartPointer< Self >
 
using Self = ImageSource
 
using Superclass = ProcessObject
 
- Public Types inherited from itk::ProcessObject
using ConstPointer = SmartPointer< const Self >
 
using DataObjectIdentifierType = DataObject::DataObjectIdentifierType
 
using DataObjectPointer = DataObject::Pointer
 
using DataObjectPointerArray = std::vector< DataObjectPointer >
 
using DataObjectPointerArraySizeType = DataObjectPointerArray::size_type
 
using MultiThreaderType = MultiThreaderBase
 
using NameArray = std::vector< DataObjectIdentifierType >
 
using Pointer = SmartPointer< Self >
 
using Self = ProcessObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
InputFilterTypeGetFilter ()
 
const InputFilterTypeGetFilter () const
 
virtual const InputFilterTypeGetInputFilter () const
 
virtual InputFilterTypeGetModifiableInputFilter ()
 
virtual OutputFilterTypeGetModifiableOutputFilter ()
 
virtual const char * GetNameOfClass () const
 
virtual const OutputFilterTypeGetOutputFilter () const
 
void SetFilter (InputFilterType *filter)
 
void SetInputFilter (InputFilterType *filter)
 
void SetOutputFilter (OutputFilterType *filter)
 
- Public Member Functions inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
void EnlargeOutputRequestedRegion (DataObject *) override
 
void GenerateInputRequestedRegion () override
 
- Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
const InputImageTypeGetInput () const
 
const InputImageTypeGetInput (unsigned int idx) const
 
void PopBackInput () override
 
void PopFrontInput () override
 
virtual void PushBackInput (const InputImageType *image)
 
virtual void PushFrontInput (const InputImageType *image)
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
virtual void SetCoordinateTolerance (double _arg)
 
virtual double GetCoordinateTolerance () const
 
virtual void SetDirectionTolerance (double _arg)
 
virtual double GetDirectionTolerance () const
 
- Public Member Functions inherited from itk::ImageSource< TOutputImage >
OutputImageTypeGetOutput ()
 
const OutputImageTypeGetOutput () const
 
OutputImageTypeGetOutput (unsigned int idx)
 
virtual void GraftOutput (DataObject *output)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *output)
 
ProcessObject::DataObjectPointer MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
ProcessObject::DataObjectPointer MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual DataObjectPointerArraySizeType GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual const float & GetProgress () const
 
void UpdateProgress (float progress)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputInformation ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfWorkUnits (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfWorkUnits () const
 
MultiThreaderTypeGetMultiThreader () const
 
void SetMultiThreader (MultiThreaderType *threader)
 
virtual void PrepareOutputs ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static void SetGlobalDefaultDirectionTolerance (double)
 
static double GetGlobalDefaultDirectionTolerance ()
 
static void SetGlobalDefaultCoordinateTolerance (double)
 
static double GetGlobalDefaultCoordinateTolerance ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension
 
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension
 
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageSource< TOutputImage >
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
using SelectType = itk::LabelSelectionLabelMapFilter< LabelMapType >
 
using CropType = itk::AutoCropLabelMapFilter< LabelMapType >
 
using PadType = itk::PadLabelMapFilter< LabelMapType >
 
using LM2BIType = itk::LabelMapToBinaryImageFilter< LabelMapType, InternalInputImageType >
 
using LI2LMType = itk::LabelImageToLabelMapFilter< InternalOutputImageType, LabelMapType >
 
using BI2LMType = itk::BinaryImageToLabelMapFilter< InternalOutputImageType, LabelMapType >
 
bool m_ConstrainPaddingToImage
 
SizeType m_PadSize
 
bool m_BinaryInternalOutput
 
bool m_KeepLabels
 
InternalOutputPixelType m_InternalForegroundValue
 
SelectType::Pointer m_Select
 
CropType::Pointer m_Crop
 
PadType::Pointer m_Pad
 
LM2BIType::Pointer m_LM2BI
 
LI2LMType::Pointer m_LI2LM
 
BI2LMType::Pointer m_BI2LM
 
InputFilterType::Pointer m_InputFilter
 
OutputFilterType::Pointer m_OutputFilter
 
InputImagePixelType m_Label
 
virtual void SetKeepLabels (bool _arg)
 
virtual bool GetKeepLabels ()
 
virtual void KeepLabelsOn ()
 
virtual void KeepLabelsOff ()
 
virtual void SetPadSize (SizeType _arg)
 
virtual SizeType GetPadSize ()
 
virtual void SetConstrainPaddingToImage (bool _arg)
 
virtual bool GetConstrainPaddingToImage ()
 
virtual void ConstrainPaddingToImageOn ()
 
virtual void ConstrainPaddingToImageOff ()
 
virtual void SetBinaryInternalOutput (bool _arg)
 
virtual bool GetBinaryInternalOutput ()
 
virtual void BinaryInternalOutputOn ()
 
virtual void BinaryInternalOutputOff ()
 
virtual void SetInternalForegroundValue (InternalOutputPixelType _arg)
 
virtual InternalOutputPixelType GetInternalForegroundValue ()
 
virtual InputImagePixelType GetLabel ()
 
 ObjectByObjectLabelMapFilter ()
 
 ~ObjectByObjectLabelMapFilter () override=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void GenerateData () override
 

Additional Inherited Members

- Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
using InputToOutputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::OutputImageDimension, Self::InputImageDimension >
 
using OutputToInputRegionCopierType = ImageToImageFilterDetail::ImageRegionCopier< Self::InputImageDimension, Self::OutputImageDimension >
 
- Protected Member Functions inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
void AfterThreadedGenerateData () override
 
void BeforeThreadedGenerateData () override
 
void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) override
 
virtual InputImageTypeGetLabelMap ()
 
 LabelMapFilter ()
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType) override
 
virtual void ThreadedProcessLabelObject (LabelObjectType *labelObject)
 
 ~LabelMapFilter () override=default
 
- Protected Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage >
 ImageToImageFilter ()
 
 ~ImageToImageFilter () override
 
void VerifyInputInformation () ITKv5_CONST override
 
virtual void CallCopyOutputRegionToInputRegion (InputImageRegionType &destRegion, const OutputImageRegionType &srcRegion)
 
virtual void CallCopyInputRegionToOutputRegion (OutputImageRegionType &destRegion, const InputImageRegionType &srcRegion)
 
void PushBackInput (const DataObject *input) override
 
void PushFrontInput (const DataObject *input) override
 
- Protected Member Functions inherited from itk::ImageSource< TOutputImage >
 ImageSource ()
 
 ~ImageSource () override=default
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
virtual void AllocateOutputs ()
 
virtual const ImageRegionSplitterBaseGetImageRegionSplitter () const
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
- Protected Member Functions inherited from itk::ProcessObject
 ProcessObject ()
 
 ~ProcessObject () override
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void AddInput (DataObject *input)
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
virtual void SetPrimaryInput (DataObject *input)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredInputs () const
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
void SetRequiredInputNames (const NameArray &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
virtual void AddOutput (DataObject *output)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual const DataObjectPointerArraySizeTypeGetNumberOfRequiredOutputs () const
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
virtual void VerifyPreconditions () ITKv5_CONST
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual void GenerateOutputInformation ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void RestoreInputReleaseDataFlags ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
 ~Object () override
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 
- Static Protected Member Functions inherited from itk::ImageSource< TOutputImage >
static const ImageRegionSplitterBaseGetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
- Protected Attributes inherited from itk::LabelMapFilter< TInputImage, TOutputImage >
std::mutex m_LabelObjectContainerLock
 
- Protected Attributes inherited from itk::ImageSource< TOutputImage >
bool m_DynamicMultiThreading
 
- Protected Attributes inherited from itk::ProcessObject
bool m_Updating
 
TimeStamp m_OutputInformationMTime
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

template<typename TInputImage, typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
class itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >

ObjectByObjectLabelMapFilter applies an image pipeline to all the objects of a label map and produce a new label map.

The image pipeline can simply produce a modified object or produce several objects from the single input object. Several options are provided to handle the different cases.

KeepLabel, which defaults to true, makes the filter try to keep as much as possible the labels of the original objects. If an image pipeline produce several objects the label of the input object is assigned to the first output object. The other output objects get another label not present in the input image. When KeepLabel is set to false, all the objects are relabeled in the order of apparition during the filter process.

BinaryInternalOutput can be set to true if the image pipeline produce binary output image. In that case, the objects produced are identified with a connected component algorithm before being reinserted in the output label map. InternalForegroundValue can be set to a specific value which represent the foreground value in the binary image.

PadSize and ConstrainPaddingToImage can be used to extend the size of the image to process passed to the image pipeline. This is useful if the image pipeline is known to be able to enlarge the object. The padding can be constrained to the input label map region by setting ConstrainPaddingToImage to true - this parameter can make a difference for the algorithm with a different behavior on the border of the image. By default, the image is padded by 1 pixel and constrained to the image region.

Note
: When applying a single filter, input and output filters are the same; while applying a pipeline, input and output filters are different, may not even be of the same type. It is the responsibility of the user to connect the pipeline properly outside of this filter.
Author
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.

This implementation was taken from the Insight Journal paper: https://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176

ITK Sphinx Examples:
\li All ITK Sphinx Examples
Examples
SphinxExamples/src/Filtering/LabelMap/ApplyMorphologicalClosingOnAllLabelObjects/Code.cxx, and SphinxExamples/src/Filtering/LabelMap/ApplyMorphologicalClosingOnSpecificLabelObject/Code.cxx.

Definition at line 86 of file itkObjectByObjectLabelMapFilter.h.

Member Typedef Documentation

◆ BI2LMType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::BI2LMType = itk::BinaryImageToLabelMapFilter<InternalOutputImageType, LabelMapType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 243 of file itkObjectByObjectLabelMapFilter.h.

◆ ConstPointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ConstPointer = SmartPointer<const Self>

Definition at line 95 of file itkObjectByObjectLabelMapFilter.h.

◆ CropType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::CropType = itk::AutoCropLabelMapFilter<LabelMapType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 231 of file itkObjectByObjectLabelMapFilter.h.

◆ InputFilterType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputFilterType = TInputFilter

Definition at line 112 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImageConstPointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer

Definition at line 101 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImagePixelType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImagePixelType = typename InputImageType::PixelType

Definition at line 103 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImagePointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImagePointer = typename InputImageType::Pointer

Definition at line 100 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImageRegionType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImageRegionType = typename InputImageType::RegionType

Definition at line 102 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImageType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImageType = TInputImage

Some convenient type alias.

Definition at line 98 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalIndexType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalIndexType = typename InternalInputImageType::IndexType

Definition at line 118 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalInputImageType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalInputImageType = TInternalInputImage

Definition at line 115 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalInputPixelType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalInputPixelType = typename InternalInputImageType::PixelType

Definition at line 120 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalOffsetType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOffsetType = typename InternalInputImageType::OffsetType

Definition at line 119 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalOutputImageType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOutputImageType = TInternalOutputImage

Definition at line 122 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalOutputPixelType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalOutputPixelType = typename InternalOutputImageType::PixelType

Definition at line 123 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalRegionType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalRegionType = typename InternalInputImageType::RegionType

Definition at line 116 of file itkObjectByObjectLabelMapFilter.h.

◆ InternalSizeType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InternalSizeType = typename InternalInputImageType::SizeType

Definition at line 117 of file itkObjectByObjectLabelMapFilter.h.

◆ LabelMapType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::LabelMapType = OutputImageType

Definition at line 109 of file itkObjectByObjectLabelMapFilter.h.

◆ LabelObjectType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::LabelObjectType = typename LabelMapType::LabelObjectType

Definition at line 110 of file itkObjectByObjectLabelMapFilter.h.

◆ LI2LMType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::LI2LMType = itk::LabelImageToLabelMapFilter<InternalOutputImageType, LabelMapType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 240 of file itkObjectByObjectLabelMapFilter.h.

◆ LM2BIType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::LM2BIType = itk::LabelMapToBinaryImageFilter<LabelMapType, InternalInputImageType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 237 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputFilterType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputFilterType = TOutputFilter

Definition at line 113 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImageConstPointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImageConstPointer = typename OutputImageType::ConstPointer

Definition at line 105 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImagePixelType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType

Definition at line 107 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImagePointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImagePointer = typename OutputImageType::Pointer

Definition at line 104 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImageRegionType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType

Definition at line 106 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImageType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImageType = TOutputImage

Definition at line 99 of file itkObjectByObjectLabelMapFilter.h.

◆ PadType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::PadType = itk::PadLabelMapFilter<LabelMapType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 234 of file itkObjectByObjectLabelMapFilter.h.

◆ Pointer

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Pointer = SmartPointer<Self>

Definition at line 94 of file itkObjectByObjectLabelMapFilter.h.

◆ SelectType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SelectType = itk::LabelSelectionLabelMapFilter<LabelMapType>
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 228 of file itkObjectByObjectLabelMapFilter.h.

◆ Self

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Self = ObjectByObjectLabelMapFilter

Standard class type aliases.

Definition at line 92 of file itkObjectByObjectLabelMapFilter.h.

◆ SizeType

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SizeType = typename OutputImageType::SizeType

Definition at line 108 of file itkObjectByObjectLabelMapFilter.h.

◆ Superclass

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
using itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::Superclass = LabelMapFilter<TInputImage, TOutputImage>

Definition at line 93 of file itkObjectByObjectLabelMapFilter.h.

Constructor & Destructor Documentation

◆ ObjectByObjectLabelMapFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ObjectByObjectLabelMapFilter ( )
protected

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ ~ObjectByObjectLabelMapFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::~ObjectByObjectLabelMapFilter ( )
overrideprotecteddefault

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Member Function Documentation

◆ BinaryInternalOutputOff()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::BinaryInternalOutputOff ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ BinaryInternalOutputOn()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::BinaryInternalOutputOn ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ ConstrainPaddingToImageOff()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ConstrainPaddingToImageOff ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ ConstrainPaddingToImageOn()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ConstrainPaddingToImageOn ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ CreateAnother()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual::itk::LightObject::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::LabelMapFilter< TInputImage, TOutputImage >.

◆ GenerateData()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GenerateData ( )
overrideprotectedvirtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Reimplemented from itk::ImageSource< TOutputImage >.

◆ GetBinaryInternalOutput()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetBinaryInternalOutput ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ GetConstrainPaddingToImage()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetConstrainPaddingToImage ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ GetFilter() [1/2]

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
InputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetFilter ( )
inline

Definition at line 139 of file itkObjectByObjectLabelMapFilter.h.

◆ GetFilter() [2/2]

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
const InputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetFilter ( ) const
inline

Definition at line 145 of file itkObjectByObjectLabelMapFilter.h.

◆ GetInputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual const InputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetInputFilter ( ) const
virtual

◆ GetInternalForegroundValue()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual InternalOutputPixelType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetInternalForegroundValue ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ GetKeepLabels()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetKeepLabels ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ GetLabel()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual InputImagePixelType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetLabel ( )
virtual

The label of the object currently processed by the filter. This is intended to be used with the IterationEvent sent before the processing of each object. It contains a relevant value only during the filter update.

◆ GetModifiableInputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual InputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetModifiableInputFilter ( )
virtual

◆ GetModifiableOutputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual OutputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetModifiableOutputFilter ( )
virtual

◆ GetNameOfClass()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual const char* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from itk::LabelMapFilter< TInputImage, TOutputImage >.

◆ GetOutputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual const OutputFilterType* itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetOutputFilter ( ) const
virtual

◆ GetPadSize()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual SizeType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::GetPadSize ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ KeepLabelsOff()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::KeepLabelsOff ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ KeepLabelsOn()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::KeepLabelsOn ( )
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ New()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
static Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::New ( )
static

Standard New method.

◆ PrintSelf()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ SetBinaryInternalOutput()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetBinaryInternalOutput ( bool  _arg)
virtual

Set/Get whether the internal image produced by OutputFilter should be interpreted as a binary image in which the filter have to search for connected components. If set to false, the filter consider the image as a label image. Default is false.

◆ SetConstrainPaddingToImage()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetConstrainPaddingToImage ( bool  _arg)
virtual

Padding by PadSize will be constrained to the input image region if ConstrainPaddingToImage is true, and won't be constrained if it is set to false. Default value is true.

◆ SetFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetFilter ( InputFilterType filter)

◆ SetInputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetInputFilter ( InputFilterType filter)

◆ SetInternalForegroundValue()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetInternalForegroundValue ( InternalOutputPixelType  _arg)
virtual

The foreground value used internally to represent the object in the image passed to InputFilter, and to read the data produced by OutputFilter, if BinaryInternalOutput is true

◆ SetKeepLabels()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetKeepLabels ( bool  _arg)
virtual

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

◆ SetOutputFilter()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetOutputFilter ( OutputFilterType filter)

◆ SetPadSize()

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
virtual void itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::SetPadSize ( SizeType  _arg)
virtual

If PadSize is not zero, the image produce for each object will be padded. The default value is 1 on all the dimensions.

Member Data Documentation

◆ ImageDimension

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
constexpr unsigned int itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::ImageDimension = TOutputImage::ImageDimension
staticconstexpr

Definition at line 128 of file itkObjectByObjectLabelMapFilter.h.

◆ InputImageDimension

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
constexpr unsigned int itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::InputImageDimension = TInputImage::ImageDimension
staticconstexpr

ImageDimension constants

Definition at line 126 of file itkObjectByObjectLabelMapFilter.h.

◆ m_BI2LM

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
BI2LMType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_BI2LM
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 244 of file itkObjectByObjectLabelMapFilter.h.

◆ m_BinaryInternalOutput

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_BinaryInternalOutput
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 222 of file itkObjectByObjectLabelMapFilter.h.

◆ m_ConstrainPaddingToImage

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_ConstrainPaddingToImage
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 220 of file itkObjectByObjectLabelMapFilter.h.

◆ m_Crop

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
CropType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_Crop
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 232 of file itkObjectByObjectLabelMapFilter.h.

◆ m_InputFilter

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
InputFilterType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_InputFilter
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 246 of file itkObjectByObjectLabelMapFilter.h.

◆ m_InternalForegroundValue

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
InternalOutputPixelType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_InternalForegroundValue
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 226 of file itkObjectByObjectLabelMapFilter.h.

◆ m_KeepLabels

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
bool itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_KeepLabels
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 224 of file itkObjectByObjectLabelMapFilter.h.

◆ m_Label

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
InputImagePixelType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_Label
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 250 of file itkObjectByObjectLabelMapFilter.h.

◆ m_LI2LM

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
LI2LMType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_LI2LM
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 241 of file itkObjectByObjectLabelMapFilter.h.

◆ m_LM2BI

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
LM2BIType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_LM2BI
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 238 of file itkObjectByObjectLabelMapFilter.h.

◆ m_OutputFilter

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
OutputFilterType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_OutputFilter
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 247 of file itkObjectByObjectLabelMapFilter.h.

◆ m_Pad

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
PadType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_Pad
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 235 of file itkObjectByObjectLabelMapFilter.h.

◆ m_PadSize

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
SizeType itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_PadSize
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 221 of file itkObjectByObjectLabelMapFilter.h.

◆ m_Select

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
SelectType::Pointer itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::m_Select
private

If KeepLabels is set to true, the filter will do its best to reuse the labels of the input objects in the output ones. However, this is possible only if the internal pipeline produce a single object - the other labels will be taken as they come. If KeepLabels is false, no care is made of the input labels, and a new label is produced for all the objects using LabelMap::PushLabelObject().

Definition at line 229 of file itkObjectByObjectLabelMapFilter.h.

◆ OutputImageDimension

template<typename TInputImage , typename TOutputImage = TInputImage, typename TInputFilter = ImageToImageFilter<Image<unsigned char, TInputImage::ImageDimension>, Image<unsigned char, TOutputImage::ImageDimension>>, class TOutputFilter = typename TInputFilter::Superclass, class TInternalInputImage = typename TInputFilter::InputImageType, class TInternalOutputImage = typename TOutputFilter::OutputImageType>
constexpr unsigned int itk::ObjectByObjectLabelMapFilter< TInputImage, TOutputImage, TInputFilter, TOutputFilter, TInternalInputImage, TInternalOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
staticconstexpr

Definition at line 127 of file itkObjectByObjectLabelMapFilter.h.


The documentation for this class was generated from the following file: