ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkRegionCompetitionImageFilter.h>
Perform front-propagation from different starting labeled regions.
The filter expects two inputs: One gray-scale image and a labeled image. The labels will be used as initial regions from which the fronts will be propagated until they collide with other labeled regions. Each labeled front will compete for pixels against other labels.
Definition at line 41 of file itkRegionCompetitionImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | IndexType = typename InputImageType::IndexType |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | InputSizeType = typename InputImageType::SizeType |
using | OffsetValueType = typename InputImageType::OffsetValueType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = RegionCompetitionImageFilter |
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 |
Static Public Member Functions | |
static Pointer | New () |
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 | 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 |
Private Types | |
using | NeighborhoodType = itk::Neighborhood< InputImagePixelType, InputImageDimension > |
using | NeighborOffsetArrayType = std::vector< OffsetValueType > |
using | SeedArrayType = std::vector< IndexType > |
using | SeedMaskImagePointer = typename SeedMaskImageType::Pointer |
using | SeedMaskImageType = itk::Image< unsigned char, InputImageDimension > |
using | SeedNewValuesArrayType = std::vector< OutputImagePixelType > |
Private Member Functions | |
void | AllocateFrontsWorkingMemory () |
void | AllocateOutputImageWorkingMemory () |
void | ClearSecondSeedArray () |
void | ComputeArrayOfNeighborhoodBufferOffsets () |
void | ComputeBirthThreshold () |
void | ComputeNumberOfInputLabels () |
void | FindAllPixelsInTheBoundaryAndAddThemAsSeeds () |
virtual const IndexType & | GetCurrentPixelIndex () const |
void | InitializeNeighborhood () |
void | IterateFrontPropagations () |
void | PasteNewSeedValuesToOutputImage () |
void | PutCurrentPixelNeighborsIntoSeedArray () |
virtual void | SetCurrentPixelIndex (IndexType _arg) |
void | SwapSeedArrays () |
bool | TestForAvailabilityAtCurrentPixel () const |
void | VisitAllSeedsAndTransitionTheirState () |
Private Attributes | |
unsigned int | m_CurrentIterationNumber |
IndexType | m_CurrentPixelIndex |
const InputImageType * | m_InputImage |
const OutputImageType * | m_inputLabelsImage |
InputImageRegionType | m_InternalRegion |
unsigned int | m_MaximumNumberOfIterations |
NeighborOffsetArrayType | m_NeighborBufferOffset |
NeighborhoodType | m_Neighborhood |
unsigned int | m_NumberOfLabels |
unsigned int | m_NumberOfPixelsChangedInLastIteration |
OffsetValueType | m_OffsetTable [InputImageDimension+1] |
OutputImageType * | m_OutputImage |
SeedArrayType * | m_SeedArray1 |
SeedArrayType * | m_SeedArray2 |
SeedMaskImagePointer | m_SeedsMask |
SeedNewValuesArrayType * | m_SeedsNewValues |
unsigned int | m_TotalNumberOfPixelsChanged |
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 > |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ImageSource< TOutputImage > | |
bool | m_DynamicMultiThreading |
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::RegionCompetitionImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 51 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::IndexType = typename InputImageType::IndexType |
Definition at line 65 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer |
Definition at line 61 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 64 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 60 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 62 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 59 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::InputSizeType = typename InputImageType::SizeType |
Definition at line 63 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 186 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 169 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::OffsetValueType = typename InputImageType::OffsetValueType |
Definition at line 66 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::OutputImagePixelType = typename OutputImageType::PixelType |
Definition at line 71 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 69 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename OutputImageType::RegionType |
Definition at line 70 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 68 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 50 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 145 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 182 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 181 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 152 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::Self = RegionCompetitionImageFilter |
Standard class type alias.
Definition at line 48 of file itkRegionCompetitionImageFilter.h.
using itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage,TOutputImage> |
Definition at line 49 of file itkRegionCompetitionImageFilter.h.
|
protected |
Begin concept checking End concept checking
|
overrideprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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::Object.
|
private |
|
overrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling DynamicThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter can be threaded, it should NOT provide a GenerateData() method but should provide a DynamicThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Returned the number of iterations used so far.
|
privatevirtual |
|
virtual |
Set/Get the maximum number of iterations that will be applied to the propagating front
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Returned the number of pixels changed in total.
|
private |
|
private |
|
static |
Method for creation through the object factory.
|
private |
|
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::ImageToImageFilter< TInputImage, TOutputImage >.
|
private |
|
privatevirtual |
void itk::RegionCompetitionImageFilter< TInputImage, TOutputImage >::SetInputLabels | ( | const TOutputImage * | inputLabelImage | ) |
Input Labels
|
virtual |
Set/Get the maximum number of iterations that will be applied to the propagating front
|
private |
|
private |
|
private |
|
static |
Image dimension constants
Definition at line 75 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 156 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 161 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 177 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 178 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 150 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 157 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 171 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 188 of file itkRegionCompetitionImageFilter.h.
|
mutableprivate |
Definition at line 190 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 158 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 167 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 179 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 147 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 148 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 184 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 154 of file itkRegionCompetitionImageFilter.h.
|
private |
Definition at line 159 of file itkRegionCompetitionImageFilter.h.
|
static |
Definition at line 76 of file itkRegionCompetitionImageFilter.h.