18 #ifndef sitkScalarImageKmeansImageFilter_h
19 #define sitkScalarImageKmeansImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetClassWithInitialMean ( std::vector<double> ClassWithInitialMean ) { this->m_ClassWithInitialMean = ClassWithInitialMean;
return *
this; }
80 SITK_RETURN_SELF_TYPE_HEADER
SetUseNonContiguousLabels (
bool UseNonContiguousLabels ) { this->m_UseNonContiguousLabels = UseNonContiguousLabels;
return *
this; }
96 std::vector<double>
GetFinalMeans()
const {
return this->m_FinalMeans; };
100 std::string
GetName()
const {
return std::string (
"ScalarImageKmeansImageFilter"); }
103 std::string ToString()
const;
115 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
123 std::vector<double> m_ClassWithInitialMean{std::vector<double>()};
126 bool m_UseNonContiguousLabels{
false};
129 std::vector<double> m_FinalMeans{std::vector<double>()};