18#ifndef itkLabelVotingImageFilter_h
19#define itkLabelVotingImageFilter_h
75template <
typename TInputImage,
typename TOutputImage = TInputImage>
100 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
101 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
112 using typename Superclass::OutputImageRegionType;
118 this->m_LabelForUndecidedPixels = l;
119 this->m_HasLabelForUndecidedPixels =
true;
133 return this->m_LabelForUndecidedPixels;
141 if (this->m_HasLabelForUndecidedPixels)
143 this->m_HasLabelForUndecidedPixels =
false;
149#ifdef ITK_USE_CONCEPT_CHECKING
184 bool m_HasLabelForUndecidedPixels{
false };
185 size_t m_TotalLabelCount{ 0 };
189#ifndef ITK_MANUAL_INSTANTIATION
190# include "itkLabelVotingImageFilter.hxx"
typename OutputImageType::RegionType OutputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
This filter performs pixelwise voting among an arbitrary number of input images, where each of them r...
typename TOutputImage::PixelType OutputPixelType
void BeforeThreadedGenerateData() override
unsigned long LabelCountType
~LabelVotingImageFilter() override=default
void PrintSelf(std::ostream &, Indent) const override
void UnsetLabelForUndecidedPixels()
TInputImage InputImageType
typename TInputImage::PixelType InputPixelType
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void SetLabelForUndecidedPixels(const OutputPixelType l)
typename OutputImageType::Pointer OutputImagePointer
OutputPixelType GetLabelForUndecidedPixels() const
InputPixelType ComputeMaximumInputValue()
typename InputImageType::ConstPointer InputImagePointer
TOutputImage OutputImageType
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....