18 #ifndef sitkScalarImageKmeansImageFilter_h
19 #define sitkScalarImageKmeansImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetClassWithInitialMean ( std::vector<double> ClassWithInitialMean ) { this->m_ClassWithInitialMean = ClassWithInitialMean;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetUseNonContiguousLabels (
bool UseNonContiguousLabels ) { this->m_UseNonContiguousLabels = UseNonContiguousLabels;
return *
this; }
97 std::vector<double>
GetFinalMeans()
const {
return this->m_FinalMeans; };
101 std::string
GetName()
const {
return std::string (
"ScalarImageKmeansImageFilter"); }
104 std::string ToString()
const;
116 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
124 std::vector<double> m_ClassWithInitialMean{std::vector<double>()};
127 bool m_UseNonContiguousLabels{
false};
130 std::vector<double> m_FinalMeans{std::vector<double>()};