18 #ifndef itkSTAPLEImageFilter_h
19 #define itkSTAPLEImageFilter_h
120 template<
typename TInputImage,
typename TOutputImage >
145 itkStaticConstMacro(ImageDimension,
unsigned int,
146 TOutputImage::ImageDimension);
167 return m_Specificity;
175 return m_Sensitivity;
182 if ( i > this->GetNumberOfIndexedInputs() )
184 itkExceptionMacro(<<
"Array reference out of bounds.");
186 return m_Sensitivity[i];
194 if ( i > this->GetNumberOfIndexedInputs() )
196 itkExceptionMacro(<<
"Array reference out of bounds.");
198 return m_Specificity[i];
205 itkSetMacro(MaximumIterations,
unsigned int);
206 itkGetConstMacro(MaximumIterations,
unsigned int);
216 itkSetMacro(ConfidenceWeight,
double);
217 itkGetConstMacro(ConfidenceWeight,
double);
221 itkGetConstMacro(ElapsedIterations,
unsigned int);
223 #ifdef ITK_USE_CONCEPT_CHECKING
235 m_ElapsedIterations = 0;
236 m_ConfidenceWeight = 1.0;
240 void GenerateData() ITK_OVERRIDE;
242 void PrintSelf(std::ostream &,
Indent) const ITK_OVERRIDE;
248 unsigned int m_ElapsedIterations;
249 unsigned int m_MaximumIterations;
251 double m_ConfidenceWeight;
253 std::vector<
double > m_Sensitivity;
254 std::vector<
double > m_Specificity;
258 #ifndef ITK_MANUAL_INSTANTIATION
259 #include "itkSTAPLEImageFilter.hxx"
NumericTraits< InputPixelType >::RealType RealType
The STAPLE filter implements the Simultaneous Truth and Performance Level Estimation algorithm for ge...
double GetSensitivity(unsigned int i)
InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
double GetSpecificity(unsigned int i)
const std::vector< double > & GetSpecificity() const
Base class for all process objects that output image data.
TOutputImage::PixelType OutputPixelType
static ITK_CONSTEXPR_FUNC T max(const T &)
ImageToImageFilter< TInputImage, TOutputImage > Superclass
SmartPointer< const Self > ConstPointer
virtual ~STAPLEImageFilter() override
TInputImage::PixelType InputPixelType
TInputImage InputImageType
SmartPointer< Self > Pointer
const std::vector< double > & GetSensitivity() const
Superclass::OutputImageRegionType OutputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
OutputImageType::Pointer OutputImagePointer
#define itkConceptMacro(name, concept)