17 #ifndef itkRegionCompetitionImageFilter_h
18 #define itkRegionCompetitionImageFilter_h
40 template <
class TInputImage,
class TOutputImage>
63 typedef typename InputImageType::IndexType
IndexType;
79 itkSetMacro( MaximumNumberOfIterations,
unsigned int );
80 itkGetMacro( MaximumNumberOfIterations,
unsigned int );
84 itkGetMacro( CurrentIterationNumber,
unsigned int );
87 itkGetMacro( TotalNumberOfPixelsChanged,
unsigned int );
92 #ifdef ITK_USE_CONCEPT_CHECKING
145 itkSetMacro( CurrentPixelIndex,
IndexType );
146 itkGetConstReferenceMacro( CurrentPixelIndex,
IndexType );
198 #ifndef ITK_MANUAL_INSTANTIATION
199 #include "itkRegionCompetitionImageFilter.hxx"
itk::Image< unsigned char, InputImageDimension > SeedMaskImageType
itk::Neighborhood< InputImagePixelType, InputImageDimension > NeighborhoodType
unsigned int m_MaximumNumberOfIterations
SeedArrayType * m_SeedArray2
SeedNewValuesArrayType * m_SeedsNewValues
TOutputImage OutputImageType
OffsetValueType m_OffsetTable[InputImageDimension+1]
unsigned int m_CurrentIterationNumber
void SetInputLabels(const TOutputImage *inputLabelImage)
signed long OffsetValueType
void PasteNewSeedValuesToOutputImage()
InputImageType::SizeType InputSizeType
std::vector< OutputImagePixelType > SeedNewValuesArrayType
IndexType m_CurrentPixelIndex
NeighborhoodType m_Neighborhood
unsigned int m_NumberOfLabels
InputImageType::ConstPointer InputImageConstPointer
static const unsigned int OutputImageDimension
~RegionCompetitionImageFilter()
Base class for all process objects that output image data.
TInputImage InputImageType
void AllocateOutputImageWorkingMemory()
SmartPointer< Self > Pointer
void ComputeNumberOfInputLabels()
OutputImageType::RegionType OutputImageRegionType
static const unsigned int InputImageDimension
RegionCompetitionImageFilter()
const InputImageType * m_InputImage
InputImageType::OffsetValueType OffsetValueType
void VisitAllSeedsAndTransitionTheirState()
SeedMaskImageType::Pointer SeedMaskImagePointer
InputImageType::IndexType IndexType
InputImageType::RegionType InputImageRegionType
void PutCurrentPixelNeighborsIntoSeedArray()
InputImageType::RegionType InputImageRegionType
unsigned int m_TotalNumberOfPixelsChanged
void AllocateFrontsWorkingMemory()
const OutputImageType * m_inputLabelsImage
InputImageType::Pointer InputImagePointer
void PrintSelf(std::ostream &os, Indent indent) const
std::vector< IndexType > SeedArrayType
RegionCompetitionImageFilter Self
void FindAllPixelsInTheBoundaryAndAddThemAsSeeds()
std::vector< OffsetValueType > NeighborOffsetArrayType
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()
SmartPointer< const Self > ConstPointer
unsigned int m_NumberOfPixelsChangedInLastIteration
Perform front-propagation from different starting labeled regions.
OutputImageType::Pointer OutputImagePointer
NeighborOffsetArrayType m_NeighborBufferOffset
void operator=(const Self &)
void ComputeArrayOfNeighborhoodBufferOffsets()
#define itkConceptMacro(name, concept)
OutputImageType * m_OutputImage
SeedArrayType * m_SeedArray1
Templated n-dimensional image class.
bool TestForAvailabilityAtCurrentPixel() const
ImageToImageFilter< TInputImage, TOutputImage > Superclass
InputImageRegionType m_InternalRegion
void InitializeNeighborhood()
OutputImageType::PixelType OutputImagePixelType
InputImageType::PixelType InputImagePixelType