18 #ifndef sitkLabelShapeStatisticsImageFilter_h
19 #define sitkLabelShapeStatisticsImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetComputeFeretDiameter (
bool ComputeFeretDiameter ) { this->m_ComputeFeretDiameter = ComputeFeretDiameter;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetComputePerimeter (
bool ComputePerimeter ) { this->m_ComputePerimeter = ComputePerimeter;
return *
this; }
113 SITK_RETURN_SELF_TYPE_HEADER
SetComputeOrientedBoundingBox (
bool ComputeOrientedBoundingBox ) { this->m_ComputeOrientedBoundingBox = ComputeOrientedBoundingBox;
return *
this; }
201 std::vector<int64_t>
GetLabels()
const {
return this->m_Labels; };
321 std::string
GetName()
const {
return std::string (
"LabelShapeStatisticsImageFilter"); }
324 std::string ToString()
const;
328 void Execute (
const Image& image1 );
332 void Execute (
const Image& image1,
double backgroundValue,
bool computeFeretDiameter,
bool computePerimeter,
bool computeOrientedBoundingBox );
345 typedef void (
Self::*MemberFunctionType)(
const Image& image1 );
346 template <
class TImageType>
void ExecuteInternal (
const Image& image1 );