ITK
6.0.0
Insight Toolkit
|
#include <itkWatershedEquivalenceRelabeler.h>
This class is part of the set of watershed segmentation component objects. It is an image-to-image filter that relabels its input according to a set of equivalencies defined in a table. The filter is used in itk::WatershedImageFilter, for example, to relabel a segmented image at different hierarchies in the merge tree (see itk::WatershedImageFilter for documentation on terminology). It simply takes its input and changes any values found in the equivalency table.
Definition at line 54 of file itkWatershedEquivalenceRelabeler.h.
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TImageDimension |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Protected Member Functions inherited from itk::ProcessObject | |
template<typename TSourceObject > | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::ConstPointer = SmartPointer<const Self> |
Define smart pointers for this object.
Definition at line 73 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::DataObjectPointer = DataObject::Pointer |
Definition at line 69 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::DataObjectPointerArraySizeType = ProcessObject::DataObjectPointerArraySizeType |
Standard itk::ProcessObject subclass method.
Definition at line 122 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::EquivalencyTableType = EquivalencyTable |
Definition at line 67 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::ImageType = Image<IdentifierType, TImageDimension> |
Some convenient type alias.
Definition at line 63 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::Pointer = SmartPointer<Self> |
Define smart pointers for this object.
Definition at line 72 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::ScalarType = TScalar |
Definition at line 66 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::SegmenterType = Segmenter<Image<ScalarType, TImageDimension> > |
Definition at line 68 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::Self = EquivalenceRelabeler |
Definition at line 64 of file itkWatershedEquivalenceRelabeler.h.
using itk::watershed::EquivalenceRelabeler< TScalar, TImageDimension >::Superclass = ProcessObject |
Definition at line 65 of file itkWatershedEquivalenceRelabeler.h.
|
inlineprotected |
Definition at line 128 of file itkWatershedEquivalenceRelabeler.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and itk::ProcessObject::SetNthOutput().
|
overrideprotecteddefault |
|
overridevirtual |
Standard non-threaded pipeline method
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
What is the input requested region that is required to produce the output requested region? By default, the largest possible region is always required but this is overridden in many subclasses. For instance, for an image processing filter where an output pixel is a simple function of an input pixel, the input requested region will be set to the output requested region. For an image processing filter where an output pixel is a function of the pixels in a neighborhood of an input pixel, then the input requested region will need to be larger than the output requested region (to avoid introducing artificial boundary conditions). This function should never request an input region that is outside the the input largest possible region (i.e. implementations of this method should crop the input requested region at the boundaries of the input largest possible region).
Reimplemented from itk::ProcessObject.
|
overrideprotectedvirtual |
Given one output whose requested region has been set, how should the requested regions for the remaining outputs of the process object be set? By default, all the outputs are set to the same requested region. If a filter needs to produce different requested regions for each output, for instance an image processing filter producing several outputs at different resolutions, then that filter may override this method and set the requested regions appropriately.
Note that a filter producing multiple outputs of different types is required to override this method. The default implementation can only correctly handle multiple outputs of the same type.
Reimplemented from itk::ProcessObject.
|
inline |
Definition at line 112 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::GetInput().
|
inline |
Set/Get the image to relabel.
Definition at line 85 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::GetInput().
|
overridevirtual |
Define smart pointers for this object.
Reimplemented from itk::ProcessObject.
|
inline |
Definition at line 99 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::GetOutput().
|
overridevirtual |
Make a DataObject of the correct type to used as the specified output.
Every ProcessObject subclass must be able to create a DataObject that can be used as a specified output. This method is automatically called when DataObject::DisconnectPipeline() is called. DataObject::DisconnectPipeline, disconnects a data object from being an output of its current source. When the data object is disconnected, the ProcessObject needs to construct a replacement output data object so that the ProcessObject is in a valid state. So DataObject::DisconnectPipeline eventually calls ProcessObject::MakeOutput. Note that MakeOutput always returns a itkSmartPointer to a DataObject. ImageSource and MeshSource override this method to create the correct type of image and mesh respectively. If a filter has multiple outputs of different types, then that filter must provide an implementation of MakeOutput().
Reimplemented from itk::ProcessObject.
|
static |
Define smart pointers for this object.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ProcessObject.
|
inline |
Set/Get the table to use in relabeling the input image.
Definition at line 106 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::SetNthInput().
|
inline |
Set/Get the image to relabel.
Definition at line 80 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::SetNthInput().
|
inline |
Set/Get the output image
Definition at line 93 of file itkWatershedEquivalenceRelabeler.h.
References itk::ProcessObject::SetNthOutput().
|
staticconstexpr |
Expose templated image dimension parameter at run time
Definition at line 60 of file itkWatershedEquivalenceRelabeler.h.