18 #ifndef sitkMultiLabelSTAPLEImageFilter_h
19 #define sitkMultiLabelSTAPLEImageFilter_h
104 SITK_RETURN_SELF_TYPE_HEADER
SetLabelForUndecidedPixels ( uint64_t LabelForUndecidedPixels ) { this->m_LabelForUndecidedPixels = LabelForUndecidedPixels;
return *
this; }
116 SITK_RETURN_SELF_TYPE_HEADER
SetTerminationUpdateThreshold (
float TerminationUpdateThreshold ) { this->m_TerminationUpdateThreshold = TerminationUpdateThreshold;
return *
this; }
126 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumNumberOfIterations (
unsigned int MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations;
return *
this; }
138 SITK_RETURN_SELF_TYPE_HEADER
SetPriorProbabilities ( std::vector<float> PriorProbabilities ) { this->m_PriorProbabilities = PriorProbabilities;
return *
this; }
153 std::vector<float>
GetConfusionMatrix(
unsigned int input)
const {
return this->m_pfGetConfusionMatrix(input); };
157 std::string
GetName()
const {
return std::string (
"MultiLabelSTAPLEImageFilter"); }
160 std::string ToString()
const;
178 template <
class TImageType>
Image ExecuteInternal (
const std::vector<Image> &
images );
187 uint64_t m_LabelForUndecidedPixels{std::numeric_limits<uint64_t>::max()};
189 float m_TerminationUpdateThreshold{1e-5f};
191 unsigned int m_MaximumNumberOfIterations{std::numeric_limits<unsigned int>::max()};
193 std::vector<float> m_PriorProbabilities{std::vector<float>()};
213 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>() );
215 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>() );
216 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>() );
217 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>() );
218 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>() );
219 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>() );