18 #ifndef itkSTAPLEImageFilter_h
19 #define itkSTAPLEImageFilter_h
120 template<
typename TInputImage,
typename TOutputImage >
147 static constexpr
unsigned int ImageDimension = TOutputImage::ImageDimension;
168 return m_Specificity;
176 return m_Sensitivity;
183 if ( i > this->GetNumberOfIndexedInputs() )
185 itkExceptionMacro(<<
"Array reference out of bounds.");
187 return m_Sensitivity[i];
195 if ( i > this->GetNumberOfIndexedInputs() )
197 itkExceptionMacro(<<
"Array reference out of bounds.");
199 return m_Specificity[i];
206 itkSetMacro(MaximumIterations,
unsigned int);
207 itkGetConstMacro(MaximumIterations,
unsigned int);
217 itkSetMacro(ConfidenceWeight,
double);
218 itkGetConstMacro(ConfidenceWeight,
double);
222 itkGetConstMacro(ElapsedIterations,
unsigned int);
224 #ifdef ITK_USE_CONCEPT_CHECKING
236 m_ElapsedIterations = 0;
237 m_ConfidenceWeight = 1.0;
241 void GenerateData()
override;
243 void PrintSelf(std::ostream &,
Indent)
const override;
257 #ifndef ITK_MANUAL_INSTANTIATION
258 #include "itkSTAPLEImageFilter.hxx"
std::vector< double > m_Sensitivity
The STAPLE filter implements the Simultaneous Truth and Performance Level Estimation algorithm for ge...
typename OutputImageType::Pointer OutputImagePointer
double GetSensitivity(unsigned int i)
unsigned int m_ElapsedIterations
Define numeric traits for std::vector.
double GetSpecificity(unsigned int i)
const std::vector< double > & GetSpecificity() const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename TOutputImage::PixelType OutputPixelType
Base class for all process objects that output image data.
std::vector< double > m_Specificity
TInputImage InputImageType
typename NumericTraits< InputPixelType >::RealType RealType
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename TInputImage::PixelType InputPixelType
const std::vector< double > & GetSensitivity() const
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
InputPixelType m_ForegroundValue
unsigned int m_MaximumIterations
#define itkConceptMacro(name, concept)
double m_ConfidenceWeight