18 #ifndef sitkRelabelComponentImageFilter_h
19 #define sitkRelabelComponentImageFilter_h
83 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;
137 Image Execute (
const Image& image1,
uint64_t minimumObjectSize,
bool sortByObjectSize );
143 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
uint64_t m_MinimumObjectSize
bool GetSortByObjectSize() const
#define SITKBasicFilters_EXPORT
std::string GetName() const
Self & SortByObjectSizeOn()
Self & SortByObjectSizeOff()
uint32_t m_NumberOfObjects
std::vector< uint64_t > m_SizeOfObjectsInPixels
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
uint32_t GetNumberOfObjects() const
RelabelComponentImageFilter Self
Self & SetSortByObjectSize(bool SortByObjectSize)
std::vector< float > GetSizeOfObjectsInPhysicalUnits() const
uint32_t m_OriginalNumberOfObjects
The Image class for SimpleITK.
Self & SetMinimumObjectSize(uint64_t MinimumObjectSize)
std::vector< uint64_t > GetSizeOfObjectsInPixels() const
std::vector< float > m_SizeOfObjectsInPhysicalUnits
Image RelabelComponent(const Image &image1, uint64_t minimumObjectSize=0u, bool sortByObjectSize=true)
Relabel the components in an image such that consecutive labels are used.
IntegerPixelIDTypeList PixelIDTypeList
uint64_t GetMinimumObjectSize() const
The base interface for SimpleITK filters that take one input image.
Relabel the components in an image such that consecutive labels are used.
uint32_t GetOriginalNumberOfObjects() const