18 #ifndef sitkSTAPLEImageFilter_h
19 #define sitkSTAPLEImageFilter_h
100 SITK_RETURN_SELF_TYPE_HEADER
SetConfidenceWeight (
double ConfidenceWeight ) { this->m_ConfidenceWeight = ConfidenceWeight;
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
120 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumIterations (
unsigned int MaximumIterations ) { this->m_MaximumIterations = MaximumIterations;
return *
this; }
152 std::string
GetName()
const {
return std::string (
"STAPLEImageFilter"); }
155 std::string ToString()
const;
158 Image Execute (
const std::vector<Image> &images);
173 template <
class TImageType>
Image ExecuteInternal (
const std::vector<Image> &images );
182 double m_ConfidenceWeight{1.0};
184 double m_ForegroundValue{1.0};
186 unsigned int m_MaximumIterations{std::numeric_limits<unsigned int>::max()};
191 std::vector<double> m_Sensitivity{std::vector<double>()};
193 std::vector<double> m_Specificity {std::vector<double>()};
208 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() );
210 SITKBasicFilters_EXPORT Image STAPLE (
const Image& image1,
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,
const Image& image2,
double confidenceWeight = 1.0,
double foregroundValue = 1.0,
unsigned int maximumIterations = std::numeric_limits<unsigned int>::max() );