17 #ifndef itkRegionCompetitionImageFilter_h
18 #define itkRegionCompetitionImageFilter_h
40 template <
typename TInputImage,
typename TOutputImage>
80 itkSetMacro( MaximumNumberOfIterations,
unsigned int );
81 itkGetMacro( MaximumNumberOfIterations,
unsigned int );
85 itkGetMacro( CurrentIterationNumber,
unsigned int );
88 itkGetMacro( TotalNumberOfPixelsChanged,
unsigned int );
93 #ifdef ITK_USE_CONCEPT_CHECKING
142 itkSetMacro( CurrentPixelIndex,
IndexType );
143 itkGetConstReferenceMacro( CurrentPixelIndex,
IndexType );
195 #ifndef ITK_MANUAL_INSTANTIATION
196 #include "itkRegionCompetitionImageFilter.hxx"
unsigned int m_MaximumNumberOfIterations
SeedArrayType * m_SeedArray2
SeedNewValuesArrayType * m_SeedsNewValues
typename OutputImageType::Pointer OutputImagePointer
std::vector< IndexType > SeedArrayType
OffsetValueType m_OffsetTable[InputImageDimension+1]
unsigned int m_CurrentIterationNumber
void SetInputLabels(const TOutputImage *inputLabelImage)
std::vector< OffsetValueType > NeighborOffsetArrayType
void PasteNewSeedValuesToOutputImage()
IndexType m_CurrentPixelIndex
typename SeedMaskImageType::Pointer SeedMaskImagePointer
TInputImage InputImageType
NeighborhoodType m_Neighborhood
unsigned int m_NumberOfLabels
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
void AllocateOutputImageWorkingMemory()
typename InputImageType::IndexType IndexType
void ComputeNumberOfInputLabels()
TOutputImage OutputImageType
RegionCompetitionImageFilter()
typename InputImageType::OffsetValueType OffsetValueType
~RegionCompetitionImageFilter() override
typename OutputImageType::PixelType OutputImagePixelType
const InputImageType * m_InputImage
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
void VisitAllSeedsAndTransitionTheirState()
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
void PutCurrentPixelNeighborsIntoSeedArray()
ImageBaseType::IndexType IndexType
typename InputImageType::SizeType InputSizeType
unsigned int m_TotalNumberOfPixelsChanged
void AllocateFrontsWorkingMemory()
void PrintSelf(std::ostream &os, Indent indent) const override
const OutputImageType * m_inputLabelsImage
static constexpr unsigned int OutputImageDimension
void GenerateData() override
void FindAllPixelsInTheBoundaryAndAddThemAsSeeds()
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
SeedMaskImagePointer m_SeedsMask
void IterateFrontPropagations()
void ClearSecondSeedArray()
Control indentation during Print() invocation.
void ComputeBirthThreshold()
unsigned int m_NumberOfPixelsChangedInLastIteration
Perform front-propagation from different starting labeled regions.
NeighborOffsetArrayType m_NeighborBufferOffset
SmartPointer< Self > Pointer
void ComputeArrayOfNeighborhoodBufferOffsets()
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
OutputImageType * m_OutputImage
typename InputImageType::ConstPointer InputImageConstPointer
signed long OffsetValueType
SeedArrayType * m_SeedArray1
static constexpr unsigned int InputImageDimension
Templated n-dimensional image class.
bool TestForAvailabilityAtCurrentPixel() const
InputImageRegionType m_InternalRegion
void InitializeNeighborhood()
std::vector< OutputImagePixelType > SeedNewValuesArrayType