18 #ifndef sitkLabelIntensityStatisticsImageFilter_h
19 #define sitkLabelIntensityStatisticsImageFilter_h
67 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
77 SITK_RETURN_SELF_TYPE_HEADER
SetComputeFeretDiameter (
bool ComputeFeretDiameter ) { this->m_ComputeFeretDiameter = ComputeFeretDiameter;
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetComputePerimeter (
bool ComputePerimeter ) { this->m_ComputePerimeter = ComputePerimeter;
return *
this; }
127 std::vector<unsigned int>
GetRegion(
int64_t label)
const {
return this->m_pfGetRegion(label); };
198 std::vector<int64_t>
GetLabels()
const {
return this->m_Labels; };
427 std::string
GetName()
const {
return std::string (
"LabelIntensityStatisticsImageFilter"); }
430 std::string ToString()
const;
435 void Execute (
const Image & image,
const Image & featureImage );
450 template <
class TImageType1,
class TImageType2>
void DualExecuteInternal (
const Image * image,
const Image * featureImage );
458 double m_BackgroundValue{0};
460 bool m_ComputeFeretDiameter{
false};
462 bool m_ComputePerimeter{
true};
485 std::vector<int64_t> m_Labels{std::vector<int64_t>()};