18 #ifndef sitkSTAPLEImageFilter_h
19 #define sitkSTAPLEImageFilter_h
96 SITK_RETURN_SELF_TYPE_HEADER
SetConfidenceWeight (
double ConfidenceWeight ) { this->m_ConfidenceWeight = ConfidenceWeight;
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
116 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumIterations (
unsigned int MaximumIterations ) { this->m_MaximumIterations = MaximumIterations;
return *
this; }
147 std::string
GetName()
const {
return std::string (
"STAPLEImageFilter"); }
150 std::string ToString()
const;
153 Image Execute (
const std::vector<Image> &images);
163 Image Execute (
const std::vector<Image> &images,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
164 Image Execute (
const Image& image1,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
165 Image Execute (
const Image& image1,
const Image& image2,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
166 Image Execute (
const Image& image1,
const Image& image2,
const Image& image3,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
167 Image Execute (
const Image& image1,
const Image& image2,
const Image& image3,
const Image& image4,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
168 Image Execute (
const Image& image1,
const Image& image2,
const Image& image3,
const Image& image4,
const Image& image5,
double confidenceWeight,
double foregroundValue,
unsigned int maximumIterations );
177 typedef Image (Self::*MemberFunctionType)(
const std::vector<Image> & );
178 template <
class TImageType>
Image ExecuteInternal (
const std::vector<Image> &images );
209 SITKBasicFilters_EXPORT Image STAPLE (
const std::vector<Image> &images ,
double confidenceWeight = 1.0,
double foregroundValue = 1.0,
unsigned int maximumIterations = std::numeric_limits<unsigned int>::max() );
211 SITKBasicFilters_EXPORT Image STAPLE (
const Image& image1,
double confidenceWeight = 1.0,
double foregroundValue = 1.0,
unsigned int maximumIterations = std::numeric_limits<unsigned int>::max() );
212 SITKBasicFilters_EXPORT Image STAPLE (
const Image& image1,
const Image& image2,
double confidenceWeight = 1.0,
double foregroundValue = 1.0,
unsigned int maximumIterations = std::numeric_limits<unsigned int>::max() );
double m_ConfidenceWeight
Self & SetForegroundValue(double ForegroundValue)
Self & SetMaximumIterations(unsigned int MaximumIterations)
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT
unsigned int GetMaximumIterations() const
uint32_t GetElapsedIterations() const
std::string GetName() const
std::vector< double > GetSensitivity() const
Image STAPLE(const std::vector< Image > &images, double confidenceWeight=1.0, double foregroundValue=1.0, unsigned int maximumIterations=std::numeric_limits< unsigned int >::max())
The STAPLE filter implements the Simultaneous Truth and Performance Level Estimation algorithm for ge...
Self & SetConfidenceWeight(double ConfidenceWeight)
std::vector< double > m_Specificity
std::vector< double > GetSpecificity() const
After the filter is updated, this method returns the Specificity (true negative fraction, q) value for the i-th expert input volume.
The Image class for SimpleITK.
std::vector< double > m_Sensitivity
double GetForegroundValue() const
unsigned int m_MaximumIterations
The STAPLE filter implements the Simultaneous Truth and Performance Level Estimation algorithm for ge...
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
uint32_t m_ElapsedIterations
The base interface for SimpleITK filters that take one input image.
double GetConfidenceWeight() const
IntegerPixelIDTypeList PixelIDTypeList