18 #ifndef sitkSTAPLEImageFilter_h
19 #define sitkSTAPLEImageFilter_h
99 SITK_RETURN_SELF_TYPE_HEADER
SetConfidenceWeight (
double ConfidenceWeight ) { this->m_ConfidenceWeight = ConfidenceWeight;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumIterations (
unsigned int MaximumIterations ) { this->m_MaximumIterations = MaximumIterations;
return *
this; }
151 std::string
GetName()
const {
return std::string (
"STAPLEImageFilter"); }
154 std::string ToString()
const;
172 template <
class TImageType>
Image ExecuteInternal (
const std::vector<Image> &
images );
181 double m_ConfidenceWeight{1.0};
183 double m_ForegroundValue{1.0};
185 unsigned int m_MaximumIterations{std::numeric_limits<unsigned int>::max()};
188 uint32_t m_ElapsedIterations{0};
190 std::vector<double> m_Sensitivity{std::vector<double>()};
192 std::vector<double> m_Specificity {std::vector<double>()};
207 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() );
209 SITKBasicFilters_EXPORT Image STAPLE (
const Image& image1,
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,
const Image& image2,
double confidenceWeight = 1.0,
double foregroundValue = 1.0,
unsigned int maximumIterations = std::numeric_limits<unsigned int>::max() );