18 #ifndef sitkMultiLabelSTAPLEImageFilter_h
19 #define sitkMultiLabelSTAPLEImageFilter_h
115 SITK_RETURN_SELF_TYPE_HEADER
SetTerminationUpdateThreshold (
float TerminationUpdateThreshold ) { this->m_TerminationUpdateThreshold = TerminationUpdateThreshold;
return *
this; }
125 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumNumberOfIterations (
unsigned int MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations;
return *
this; }
137 SITK_RETURN_SELF_TYPE_HEADER
SetPriorProbabilities ( std::vector<float> PriorProbabilities ) { this->m_PriorProbabilities = PriorProbabilities;
return *
this; }
152 std::vector<float>
GetConfusionMatrix(
unsigned int input)
const {
return this->m_pfGetConfusionMatrix(input); };
156 std::string
GetName()
const {
return std::string (
"MultiLabelSTAPLEImageFilter"); }
159 std::string ToString()
const;
162 Image Execute (
const std::vector<Image> &images);
177 template <
class TImageType>
Image ExecuteInternal (
const std::vector<Image> &images );
186 uint64_t m_LabelForUndecidedPixels{std::numeric_limits<uint64_t>::max()};
188 float m_TerminationUpdateThreshold{1e-5f};
190 unsigned int m_MaximumNumberOfIterations{std::numeric_limits<unsigned int>::max()};
192 std::vector<float> m_PriorProbabilities{std::vector<float>()};
212 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const std::vector<Image> &images ,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );
214 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const Image& image1,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );
215 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const Image& image1,
const Image& image2,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );
216 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const Image& image1,
const Image& image2,
const Image& image3,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );
217 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const Image& image1,
const Image& image2,
const Image& image3,
const Image& image4,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );
218 SITKBasicFilters_EXPORT Image MultiLabelSTAPLE (
const Image& image1,
const Image& image2,
const Image& image3,
const Image& image4,
const Image& image5,
uint64_t labelForUndecidedPixels = std::numeric_limits<uint64_t>::max(),
float terminationUpdateThreshold = 1e-5f,
unsigned int maximumNumberOfIterations = std::numeric_limits<unsigned int>::max(), std::vector<float> priorProbabilities = std::vector<float>() );