18 #ifndef sitkRelabelComponentImageFilter_h
19 #define sitkRelabelComponentImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetMinimumObjectSize ( uint64_t MinimumObjectSize ) { this->m_MinimumObjectSize = MinimumObjectSize;
return *
this; }
82 SITK_RETURN_SELF_TYPE_HEADER
SetSortByObjectSize (
bool SortByObjectSize ) { this->m_SortByObjectSize = SortByObjectSize;
return *
this; }
126 std::string
GetName()
const {
return std::string (
"RelabelComponentImageFilter"); }
129 std::string ToString()
const;
143 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
151 uint64_t m_MinimumObjectSize{0u};
153 bool m_SortByObjectSize{
true};
156 uint32_t m_NumberOfObjects{0u};
158 uint32_t m_OriginalNumberOfObjects{0u};
160 std::vector<float> m_SizeOfObjectsInPhysicalUnits{std::vector<float>()};
162 std::vector<uint64_t> m_SizeOfObjectsInPixels{std::vector<uint64_t>()};
165 bool m_InPlace{
false};