18#ifndef itkSTAPLEImageFilter_h
19#define itkSTAPLEImageFilter_h
121template <
typename TInputImage,
typename TOutputImage>
147 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
156 using typename Superclass::OutputImageRegionType;
166 const std::vector<double> &
169 return m_Specificity;
175 const std::vector<double> &
178 return m_Sensitivity;
186 if (i > this->GetNumberOfIndexedInputs())
188 itkExceptionMacro(
"Array reference out of bounds.");
190 return m_Sensitivity[i];
199 if (i > this->GetNumberOfIndexedInputs())
201 itkExceptionMacro(
"Array reference out of bounds.");
203 return m_Specificity[i];
211 itkGetConstMacro(MaximumIterations,
unsigned int);
221 itkSetMacro(ConfidenceWeight,
double);
222 itkGetConstMacro(ConfidenceWeight,
double);
226 itkGetConstMacro(ElapsedIterations,
unsigned int);
228#ifdef ITK_USE_CONCEPT_CHECKING
239 m_ElapsedIterations = 0;
240 m_ConfidenceWeight = 1.0;
252 unsigned int m_ElapsedIterations{};
253 unsigned int m_MaximumIterations{};
255 double m_ConfidenceWeight{};
257 std::vector<double> m_Sensitivity{};
258 std::vector<double> m_Specificity{};
262#ifndef ITK_MANUAL_INSTANTIATION
263# include "itkSTAPLEImageFilter.hxx"
Base class for all process objects that output image data.
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
static constexpr T max(const T &)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
The STAPLE filter implements the Simultaneous Truth and Performance Level Estimation algorithm for ge...
const std::vector< double > & GetSensitivity() const
typename TOutputImage::PixelType OutputPixelType
double GetSpecificity(unsigned int i)
~STAPLEImageFilter() override=default
void GenerateData() override
void PrintSelf(std::ostream &, Indent) const override
typename NumericTraits< InputPixelType >::RealType RealType
const std::vector< double > & GetSpecificity() const
double GetSensitivity(unsigned int i)
typename TInputImage::PixelType InputPixelType
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....