#include <itkHardConnectedComponentImageFilter.h>
The purpose of this program is to produce the connected components for any input binary image of dimensionality n.
The program does a forward pass line by line through the entire image. Each cell in the foreground is assigned the same label value as cells in its neighborhood. If there is no label among the cells in its neighborhood, a new label value is assigned to the cell. This means that this cell belongs to a different connected component. We set up an equivalence table for each label to indicate the equivalence of the labels stored in the table. After the forward pass goes through the entire image, we merge the different connected components corresponding to the equivalence labels in the table. We implement this strategy in the function GenerateData().
There are two options in the program.
Definition at line 49 of file itkHardConnectedComponentImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
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 | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
ListType | m_Seeds {} |
Additional Inherited Members | |
![]() | |
using | InputToOutputRegionCopierType |
using | OutputToInputRegionCopierType |
![]() | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
![]() | |
template<typename TSourceObject> | |
static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
static constexpr float | progressFixedToFloat (uint32_t fixed) |
static uint32_t | progressFloatToFixed (float f) |
![]() | |
bool | m_DynamicMultiThreading { true } |
![]() | |
TimeStamp | m_OutputInformationMTime {} |
bool | m_Updating {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 60 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::IndexType = typename TInputImage::IndexType |
Definition at line 78 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Image type alias support
Definition at line 76 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputInternalPixelType = typename TInputImage::InternalPixelType |
Definition at line 69 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::InputPixelType = typename TInputImage::PixelType |
Definition at line 68 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::ListType = std::list<IndexType> |
Definition at line 81 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 77 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputInternalPixelType = typename TOutputImage::InternalPixelType |
Definition at line 67 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::OutputPixelType = typename TOutputImage::PixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 66 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 59 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::RegionType = typename TOutputImage::RegionType |
Definition at line 80 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Self = HardConnectedComponentImageFilter |
Standard class typedef's
Definition at line 57 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::SizeType = typename TInputImage::SizeType |
Definition at line 79 of file itkHardConnectedComponentImageFilter.h.
using itk::HardConnectedComponentImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 58 of file itkHardConnectedComponentImageFilter.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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::LightObject.
|
overrideprotectedvirtual |
Standard pipeline method.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Run-time type information (and related methods)
Reimplemented from itk::LightObject.
References HardConnectedComponentImageFilter().
|
static |
Method for creation through the object factory.
|
inlineoverrideprotectedvirtual |
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::LightObject.
Definition at line 118 of file itkHardConnectedComponentImageFilter.h.
References itk::ImageToImageFilter< TInputImage, TOutputImage >::PrintSelf().
|
inline |
Setting the seed points for specified object.
Definition at line 95 of file itkHardConnectedComponentImageFilter.h.
References m_Seeds.
|
staticconstexpr |
Definition at line 71 of file itkHardConnectedComponentImageFilter.h.
|
staticconstexpr |
Definition at line 70 of file itkHardConnectedComponentImageFilter.h.
|
private |
Definition at line 124 of file itkHardConnectedComponentImageFilter.h.
Referenced by SetObjectSeed().