18 #ifndef itkMultiLabelSTAPLEImageFilter_h 19 #define itkMultiLabelSTAPLEImageFilter_h 117 template <
typename TInputImage,
typename TOutputImage = TInputImage,
typename TWeights =
float >
142 TOutputImage::ImageDimension);
163 itkGetConstMacro(ElapsedNumberOfIterations,
unsigned int);
173 itkGetConstMacro(MaximumNumberOfIterations,
unsigned int);
177 itkGetConstMacro(HasMaximumNumberOfIterations,
bool);
193 itkSetMacro(TerminationUpdateThreshold, TWeights);
194 itkGetConstMacro(TerminationUpdateThreshold, TWeights);
214 itkGetMacro(LabelForUndecidedPixels, OutputPixelType);
217 itkGetMacro(HasLabelForUndecidedPixels,
bool);
252 itkGetConstReferenceMacro(PriorProbabilities, PriorProbabilitiesType);
255 itkGetMacro(HasPriorProbabilities,
bool);
305 void operator=(
const Self&) ITK_DELETE_FUNCTION;
332 #ifndef ITK_MANUAL_INSTANTIATION 333 #include "itkMultiLabelSTAPLEImageFilter.hxx" Array2D< WeightsType > ConfusionMatrixType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
std::vector< ConfusionMatrixType > m_ConfusionMatrixArray
void AllocateConfusionMatrixArray()
void operator=(const Self &) ITK_DELETE_FUNCTION
void UnsetPriorProbabilities()
unsigned int m_MaximumNumberOfIterations
unsigned int m_ElapsedNumberOfIterations
Array< WeightsType > PriorProbabilitiesType
virtual ~MultiLabelSTAPLEImageFilter()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void UnsetMaximumNumberOfIterations()
TInputImage::PixelType InputPixelType
void InitializeConfusionMatrixArrayFromVoting()
TWeights m_TerminationUpdateThreshold
void PrintSelf(std::ostream &, Indent) const override
void SetLabelForUndecidedPixels(const OutputPixelType l)
OutputPixelType m_LabelForUndecidedPixels
bool m_HasMaximumNumberOfIterations
static ITK_CONSTEXPR double e
The base of the natural logarithm or Euler's number
OutputImageType::Pointer OutputImagePointer
InputImageType::Pointer InputImagePointer
ImageRegionIterator< TOutputImage > OutputIteratorType
Array2D class representing a 2D array with size defined at construction time.
void GenerateInputRequestedRegion() override
A multi-dimensional iterator templated over image type that walks a region of pixels.
MultiLabelSTAPLEImageFilter Self
MultiLabelSTAPLEImageFilter()
TOutputImage::PixelType OutputPixelType
const ConfusionMatrixType & GetConfusionMatrix(const unsigned int i) const
bool m_HasPriorProbabilities
Superclass::OutputImageRegionType OutputImageRegionType
TOutputImage OutputImageType
ImageRegionConstIterator< TInputImage > InputConstIteratorType
void SetMaximumNumberOfIterations(const unsigned int mit)
virtual void Modified() const
SmartPointer< Self > Pointer
This filter performs a pixelwise combination of an arbitrary number of input images, where each of them represents a segmentation of the same scene (i.e., image).
void UnsetLabelForUndecidedPixels()
bool m_HasLabelForUndecidedPixels
std::vector< ConfusionMatrixType > m_UpdatedConfusionMatrixArray
void EnlargeOutputRequestedRegion(DataObject *) override
Base class for filters that take an image as input and produce an image as output.
PriorProbabilitiesType m_PriorProbabilities
void SetPriorProbabilities(const PriorProbabilitiesType &ppa)
Control indentation during Print() invocation.
void GenerateData() override
static const unsigned int ImageDimension
TInputImage InputImageType
Superclass::OutputImageRegionType OutputImageRegionType
Define additional traits for native types such as int or float.
TInputImage::PixelType ComputeMaximumInputValue()
SmartPointer< const Self > ConstPointer
vcl_size_t m_TotalLabelCount
void InitializePriorProbabilities()
Base class for all data objects in ITK.
A multi-dimensional iterator templated over image type that walks a region of pixels.