SimpleITK  
itk::simple::LabelShapeStatisticsImageFilter Class Reference

Converts a label image to a label map and valuates the shape attributes. More...

#include <sitkLabelShapeStatisticsImageFilter.h>

+ Inheritance diagram for itk::simple::LabelShapeStatisticsImageFilter:
+ Collaboration diagram for itk::simple::LabelShapeStatisticsImageFilter:

Detailed Description

Converts a label image to a label map and valuates the shape attributes.

A convenient class that converts a label image to a label map and valuates the shape attribute at once.

This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4

Author
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
See also
ShapeLabelObject , LabelShapeOpeningImageFilter , LabelStatisticsOpeningImageFilter
itk::LabelImageToShapeLabelMapFilter for the Doxygen on the original ITK class.

Definition at line 49 of file sitkLabelShapeStatisticsImageFilter.h.

Public Types

using PixelIDTypeList = IntegerPixelIDTypeList
 
using Self = LabelShapeStatisticsImageFilter
 
- Public Types inherited from itk::simple::ImageFilter
using Self = ImageFilter
 
- Public Types inherited from itk::simple::ProcessObject
using Self = ProcessObject
 

Public Member Functions

void ComputeFeretDiameterOff ()
 
void ComputeFeretDiameterOn ()
 
void ComputeOrientedBoundingBoxOff ()
 
void ComputeOrientedBoundingBoxOn ()
 
void ComputePerimeterOff ()
 
void ComputePerimeterOn ()
 
void Execute (const Image &image1)
 
double GetBackgroundValue () const
 
std::vector< unsigned int > GetBoundingBox (int64_t label) const
 
std::vector< double > GetCentroid (int64_t label) const
 
bool GetComputeFeretDiameter () const
 
bool GetComputeOrientedBoundingBox () const
 
bool GetComputePerimeter () const
 
double GetElongation (int64_t label) const
 
std::vector< double > GetEquivalentEllipsoidDiameter (int64_t label) const
 
double GetEquivalentSphericalPerimeter (int64_t label) const
 
double GetEquivalentSphericalRadius (int64_t label) const
 
double GetFeretDiameter (int64_t label) const
 
double GetFlatness (int64_t label) const
 
std::vector< unsigned int > GetIndexes (int64_t label) const
 
std::vector< int64_t > GetLabels () const
 
std::string GetName () const
 
uint64_t GetNumberOfLabels ()
 
uint64_t GetNumberOfPixels (int64_t label) const
 
uint64_t GetNumberOfPixelsOnBorder (int64_t label) const
 
std::vector< double > GetOrientedBoundingBoxDirection (int64_t label) const
 
std::vector< double > GetOrientedBoundingBoxOrigin (int64_t label) const
 
std::vector< double > GetOrientedBoundingBoxSize (int64_t label) const
 
std::vector< double > GetOrientedBoundingBoxVertices (int64_t label) const
 
double GetPerimeter (int64_t label) const
 
double GetPerimeterOnBorder (int64_t label) const
 
double GetPerimeterOnBorderRatio (int64_t label) const
 
double GetPhysicalSize (int64_t label) const
 
std::vector< double > GetPrincipalAxes (int64_t label) const
 
std::vector< double > GetPrincipalMoments (int64_t label) const
 
std::vector< unsigned int > GetRegion (int64_t label) const
 
std::vector< unsigned int > GetRLEIndexes (int64_t label) const
 
double GetRoundness (int64_t label) const
 
bool HasLabel (int64_t label)
 
 LabelShapeStatisticsImageFilter ()
 
void SetBackgroundValue (double BackgroundValue)
 
void SetComputeFeretDiameter (bool ComputeFeretDiameter)
 
void SetComputeOrientedBoundingBox (bool ComputeOrientedBoundingBox)
 
void SetComputePerimeter (bool ComputePerimeter)
 
std::string ToString () const
 
virtual ~LabelShapeStatisticsImageFilter ()
 
- Public Member Functions inherited from itk::simple::ImageFilter
 ImageFilter ()
 
virtual ~ImageFilter ()=0
 
- Public Member Functions inherited from itk::simple::ProcessObject
virtual void Abort ()
 
virtual int AddCommand (itk::simple::EventEnum event, const std::function< void()> &func)
 Directly add a callback to observe an event.
 
virtual int AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd)
 Add a Command Object to observer the event.
 
virtual float GetProgress () const
 An Active Measurement of the progress of execution.
 
virtual bool HasCommand (itk::simple::EventEnum event) const
 Query of this object has any registered commands for event.
 
 ProcessObject ()
 
virtual void RemoveAllCommands ()
 Remove all registered commands.
 
virtual ~ProcessObject ()
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
virtual bool GetDebug () const
 
virtual void SetDebug (bool debugFlag)
 
virtual void SetNumberOfThreads (unsigned int n)
 
virtual unsigned int GetNumberOfThreads () const
 
virtual void SetNumberOfWorkUnits (unsigned int n)
 
virtual unsigned int GetNumberOfWorkUnits () const
 

Private Types

using MemberFunctionType = void (Self::*)(const Image &image1)
 

Private Member Functions

template<class TImageType>
void ExecuteInternal (const Image &image1)
 

Static Private Member Functions

static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory ()
 

Private Attributes

double m_BackgroundValue { 0 }
 
bool m_ComputeFeretDiameter { false }
 
bool m_ComputeOrientedBoundingBox { false }
 
bool m_ComputePerimeter { true }
 
std::unique_ptr< itk::ProcessObject, ProcessObjectDeleterm_Filter {nullptr}
 
std::vector< int64_t > m_Labels { std::vector<int64_t>() }
 
std::function< std::vector< unsigned int >(int64_t)> m_pfGetBoundingBox
 
std::function< std::vector< double >(int64_t)> m_pfGetCentroid
 
std::function< double(int64_t)> m_pfGetElongation
 
std::function< std::vector< double >(int64_t)> m_pfGetEquivalentEllipsoidDiameter
 
std::function< double(int64_t)> m_pfGetEquivalentSphericalPerimeter
 
std::function< double(int64_t)> m_pfGetEquivalentSphericalRadius
 
std::function< double(int64_t)> m_pfGetFeretDiameter
 
std::function< double(int64_t)> m_pfGetFlatness
 
std::function< std::vector< unsigned int >(int64_t)> m_pfGetIndexes
 
std::function< uint64_t(int64_t)> m_pfGetNumberOfPixels
 
std::function< uint64_t(int64_t)> m_pfGetNumberOfPixelsOnBorder
 
std::function< std::vector< double >(int64_t)> m_pfGetOrientedBoundingBoxDirection
 
std::function< std::vector< double >(int64_t)> m_pfGetOrientedBoundingBoxOrigin
 
std::function< std::vector< double >(int64_t)> m_pfGetOrientedBoundingBoxSize
 
std::function< std::vector< double >(int64_t)> m_pfGetOrientedBoundingBoxVertices
 
std::function< double(int64_t)> m_pfGetPerimeter
 
std::function< double(int64_t)> m_pfGetPerimeterOnBorder
 
std::function< double(int64_t)> m_pfGetPerimeterOnBorderRatio
 
std::function< double(int64_t)> m_pfGetPhysicalSize
 
std::function< std::vector< double >(int64_t)> m_pfGetPrincipalAxes
 
std::function< std::vector< double >(int64_t)> m_pfGetPrincipalMoments
 
std::function< std::vector< unsigned int >(int64_t)> m_pfGetRegion
 
std::function< std::vector< unsigned int >(int64_t)> m_pfGetRLEIndexes
 
std::function< double(int64_t)> m_pfGetRoundness
 

Friends

struct detail::MemberFunctionAddressor< MemberFunctionType >
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::simple::ProcessObject
static bool GetGlobalDefaultDebug ()
 
static void GlobalDefaultDebugOff ()
 
static void GlobalDefaultDebugOn ()
 
static void SetGlobalDefaultDebug (bool debugFlag)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static void SetGlobalWarningDisplay (bool flag)
 
static bool GetGlobalWarningDisplay ()
 
static double GetGlobalDefaultCoordinateTolerance ()
 Access the global tolerance to determine congruent spaces.
 
static void SetGlobalDefaultCoordinateTolerance (double)
 Access the global tolerance to determine congruent spaces.
 
static double GetGlobalDefaultDirectionTolerance ()
 Access the global tolerance to determine congruent spaces.
 
static void SetGlobalDefaultDirectionTolerance (double)
 Access the global tolerance to determine congruent spaces.
 
static bool SetGlobalDefaultThreader (const std::string &threader)
 Set/Get the default threader used for process objects.
 
static std::string GetGlobalDefaultThreader ()
 Set/Get the default threader used for process objects.
 
static void SetGlobalDefaultNumberOfThreads (unsigned int n)
 
static unsigned int GetGlobalDefaultNumberOfThreads ()
 Set/Get the default threader used for process objects.
 
- Protected Member Functions inherited from itk::simple::ImageFilter
void CheckImageMatchingDimension (const Image &image1, const Image &image2, const std::string &image2Name)
 
void CheckImageMatchingPixelType (const Image &image1, const Image &image2, const std::string &image2Name)
 
void CheckImageMatchingSize (const Image &image1, const Image &image2, const std::string &image2Name)
 
- Protected Member Functions inherited from itk::simple::ProcessObject
virtual unsigned long AddITKObserver (const itk::EventObject &, itk::Command *)
 
virtual itk::ProcessObjectGetActiveProcess ()
 
virtual void OnActiveProcessDelete ()
 
virtual void onCommandDelete (const itk::simple::Command *cmd) noexcept
 
virtual void PreUpdate (itk::ProcessObject *p)
 
virtual void RemoveITKObserver (EventCommand &e)
 
- Protected Member Functions inherited from itk::simple::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
- Static Protected Member Functions inherited from itk::simple::ImageFilter
template<class TImageType>
static void FixNonZeroIndex (TImageType *img)
 
- Static Protected Member Functions inherited from itk::simple::ProcessObject
template<class TImageType>
static TImageType::ConstPointer CastImageToITK (const Image &img)
 
template<class TPixelType, unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector>
static Image CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img)
 
template<unsigned int VImageDimension, unsigned int VLength, template< unsigned int > class TVector>
static Image CastITKToImage (itk::Image< TVector< VLength >, VImageDimension > *img)
 
template<class TImageType>
static Image CastITKToImage (TImageType *img)
 
static const itk::EventObjectGetITKEventObject (EventEnum e)
 
template<typename T>
static std::ostream & ToStringHelper (std::ostream &os, const T &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const char &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const signed char &v)
 
static std::ostream & ToStringHelper (std::ostream &os, const unsigned char &v)
 

Member Typedef Documentation

◆ MemberFunctionType

using itk::simple::LabelShapeStatisticsImageFilter::MemberFunctionType = void (Self::*)(const Image &image1)
private

Setup for member function dispatching

Definition at line 366 of file sitkLabelShapeStatisticsImageFilter.h.

◆ PixelIDTypeList

Define the pixels types supported by this filter

Definition at line 61 of file sitkLabelShapeStatisticsImageFilter.h.

◆ Self

Constructor & Destructor Documentation

◆ ~LabelShapeStatisticsImageFilter()

virtual itk::simple::LabelShapeStatisticsImageFilter::~LabelShapeStatisticsImageFilter ( )
virtual

Destructor

◆ LabelShapeStatisticsImageFilter()

itk::simple::LabelShapeStatisticsImageFilter::LabelShapeStatisticsImageFilter ( )

Default Constructor that takes no arguments and initializes default parameters

Member Function Documentation

◆ ComputeFeretDiameterOff()

void itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOff ( )
inline

Definition at line 91 of file sitkLabelShapeStatisticsImageFilter.h.

References SetComputeFeretDiameter().

◆ ComputeFeretDiameterOn()

void itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOn ( )
inline

Set the value of ComputeFeretDiameter to true or false respectfully.

Definition at line 89 of file sitkLabelShapeStatisticsImageFilter.h.

References SetComputeFeretDiameter().

◆ ComputeOrientedBoundingBoxOff()

void itk::simple::LabelShapeStatisticsImageFilter::ComputeOrientedBoundingBoxOff ( )
inline

◆ ComputeOrientedBoundingBoxOn()

void itk::simple::LabelShapeStatisticsImageFilter::ComputeOrientedBoundingBoxOn ( )
inline

Set the value of ComputeOrientedBoundingBox to true or false respectfully.

Definition at line 131 of file sitkLabelShapeStatisticsImageFilter.h.

References SetComputeOrientedBoundingBox().

◆ ComputePerimeterOff()

void itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOff ( )
inline

Definition at line 112 of file sitkLabelShapeStatisticsImageFilter.h.

References SetComputePerimeter().

◆ ComputePerimeterOn()

void itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOn ( )
inline

Set the value of ComputePerimeter to true or false respectfully.

Definition at line 110 of file sitkLabelShapeStatisticsImageFilter.h.

References SetComputePerimeter().

◆ Execute()

void itk::simple::LabelShapeStatisticsImageFilter::Execute ( const Image & image1)

Execute the filter on the input image

◆ ExecuteInternal()

template<class TImageType>
void itk::simple::LabelShapeStatisticsImageFilter::ExecuteInternal ( const Image & image1)
private

◆ GetBackgroundValue()

double itk::simple::LabelShapeStatisticsImageFilter::GetBackgroundValue ( ) const
inline

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .

Definition at line 76 of file sitkLabelShapeStatisticsImageFilter.h.

References m_BackgroundValue.

◆ GetBoundingBox()

std::vector< unsigned int > itk::simple::LabelShapeStatisticsImageFilter::GetBoundingBox ( int64_t label) const
inline

Get the bounding box of a labeled object. The bounding box is returned following the common convention for returning an itk::ImageRegion as a 1 dimensional array containing the index values followed by the size values. For example, a 2D image region would have the array

\[[x, y, width, height]\]

.

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 149 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetBoundingBox.

◆ GetCentroid()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetCentroid ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 165 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetCentroid.

◆ GetComputeFeretDiameter()

bool itk::simple::LabelShapeStatisticsImageFilter::GetComputeFeretDiameter ( ) const
inline

Set/Get whether the maximum Feret diameter should be computed or not. Default value is false, because of the high computation time required.

Definition at line 97 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputeFeretDiameter.

◆ GetComputeOrientedBoundingBox()

bool itk::simple::LabelShapeStatisticsImageFilter::GetComputeOrientedBoundingBox ( ) const
inline

Set/Get whether the oriented bounding box should be computed or not. Default value is false because of potential memory consumption issues with sparse labels.

Definition at line 139 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputeOrientedBoundingBox.

◆ GetComputePerimeter()

bool itk::simple::LabelShapeStatisticsImageFilter::GetComputePerimeter ( ) const
inline

Set/Get whether the perimeter should be computed or not. Default value is false, because of the high computation time required.

Definition at line 118 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputePerimeter.

◆ GetElongation()

double itk::simple::LabelShapeStatisticsImageFilter::GetElongation ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 173 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetElongation.

◆ GetEquivalentEllipsoidDiameter()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentEllipsoidDiameter ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 181 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetEquivalentEllipsoidDiameter.

◆ GetEquivalentSphericalPerimeter()

double itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentSphericalPerimeter ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 189 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetEquivalentSphericalPerimeter.

◆ GetEquivalentSphericalRadius()

double itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentSphericalRadius ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 197 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetEquivalentSphericalRadius.

◆ GetFeretDiameter()

double itk::simple::LabelShapeStatisticsImageFilter::GetFeretDiameter ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 205 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetFeretDiameter.

◆ GetFlatness()

double itk::simple::LabelShapeStatisticsImageFilter::GetFlatness ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 213 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetFlatness.

◆ GetIndexes()

std::vector< unsigned int > itk::simple::LabelShapeStatisticsImageFilter::GetIndexes ( int64_t label) const
inline

Get an array of indexes for pixels with the label value.

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 333 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetIndexes.

◆ GetLabels()

std::vector< int64_t > itk::simple::LabelShapeStatisticsImageFilter::GetLabels ( ) const
inline

This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.

Definition at line 220 of file sitkLabelShapeStatisticsImageFilter.h.

References m_Labels.

◆ GetMemberFunctionFactory()

static const detail::MemberFunctionFactory< MemberFunctionType > & itk::simple::LabelShapeStatisticsImageFilter::GetMemberFunctionFactory ( )
staticprivate

◆ GetName()

std::string itk::simple::LabelShapeStatisticsImageFilter::GetName ( ) const
inlinevirtual

Name of this class

Implements itk::simple::ProcessObject.

Definition at line 345 of file sitkLabelShapeStatisticsImageFilter.h.

◆ GetNumberOfLabels()

uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfLabels ( )

Return the number of labels after execution.

◆ GetNumberOfPixels()

uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfPixels ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 228 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetNumberOfPixels.

◆ GetNumberOfPixelsOnBorder()

uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfPixelsOnBorder ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 236 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetNumberOfPixelsOnBorder.

◆ GetOrientedBoundingBoxDirection()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetOrientedBoundingBoxDirection ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 316 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetOrientedBoundingBoxDirection.

◆ GetOrientedBoundingBoxOrigin()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetOrientedBoundingBoxOrigin ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 308 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetOrientedBoundingBoxOrigin.

◆ GetOrientedBoundingBoxSize()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetOrientedBoundingBoxSize ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 300 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetOrientedBoundingBoxSize.

◆ GetOrientedBoundingBoxVertices()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetOrientedBoundingBoxVertices ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 324 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetOrientedBoundingBoxVertices.

◆ GetPerimeter()

double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeter ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 244 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPerimeter.

◆ GetPerimeterOnBorder()

double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeterOnBorder ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 252 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPerimeterOnBorder.

◆ GetPerimeterOnBorderRatio()

double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeterOnBorderRatio ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 260 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPerimeterOnBorderRatio.

◆ GetPhysicalSize()

double itk::simple::LabelShapeStatisticsImageFilter::GetPhysicalSize ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 268 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPhysicalSize.

◆ GetPrincipalAxes()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetPrincipalAxes ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 276 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPrincipalAxes.

◆ GetPrincipalMoments()

std::vector< double > itk::simple::LabelShapeStatisticsImageFilter::GetPrincipalMoments ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 284 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetPrincipalMoments.

◆ GetRegion()

std::vector< unsigned int > itk::simple::LabelShapeStatisticsImageFilter::GetRegion ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 157 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetRegion.

◆ GetRLEIndexes()

std::vector< unsigned int > itk::simple::LabelShapeStatisticsImageFilter::GetRLEIndexes ( int64_t label) const
inline

Get an array of run-length encoding (RLE) indexes for pixels with the label value. The array is the index of a starting line, followed by the length repeated. The length of the array is divisible by the image's dimension + 1. For example for a 2D image the array [ 2, 3, 2] would encode the two indexes [2,3] and [3,3].

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 342 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetRLEIndexes.

◆ GetRoundness()

double itk::simple::LabelShapeStatisticsImageFilter::GetRoundness ( int64_t label) const
inline

This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.

Definition at line 292 of file sitkLabelShapeStatisticsImageFilter.h.

References m_pfGetRoundness.

◆ HasLabel()

bool itk::simple::LabelShapeStatisticsImageFilter::HasLabel ( int64_t label)

Does the specified label exist? Can only be called after a call a call to Update().

◆ SetBackgroundValue()

void itk::simple::LabelShapeStatisticsImageFilter::SetBackgroundValue ( double BackgroundValue)
inline

Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .

Definition at line 70 of file sitkLabelShapeStatisticsImageFilter.h.

References m_BackgroundValue.

◆ SetComputeFeretDiameter()

void itk::simple::LabelShapeStatisticsImageFilter::SetComputeFeretDiameter ( bool ComputeFeretDiameter)
inline

Set/Get whether the maximum Feret diameter should be computed or not. Default value is false, because of the high computation time required.

Definition at line 84 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputeFeretDiameter.

Referenced by ComputeFeretDiameterOff(), and ComputeFeretDiameterOn().

◆ SetComputeOrientedBoundingBox()

void itk::simple::LabelShapeStatisticsImageFilter::SetComputeOrientedBoundingBox ( bool ComputeOrientedBoundingBox)
inline

Set/Get whether the oriented bounding box should be computed or not. Default value is false because of potential memory consumption issues with sparse labels.

Definition at line 126 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputeOrientedBoundingBox.

Referenced by ComputeOrientedBoundingBoxOff(), and ComputeOrientedBoundingBoxOn().

◆ SetComputePerimeter()

void itk::simple::LabelShapeStatisticsImageFilter::SetComputePerimeter ( bool ComputePerimeter)
inline

Set/Get whether the perimeter should be computed or not. Default value is false, because of the high computation time required.

Definition at line 105 of file sitkLabelShapeStatisticsImageFilter.h.

References m_ComputePerimeter.

Referenced by ComputePerimeterOff(), and ComputePerimeterOn().

◆ ToString()

std::string itk::simple::LabelShapeStatisticsImageFilter::ToString ( ) const
virtual

Print ourselves out

Reimplemented from itk::simple::ProcessObject.

Friends And Related Symbol Documentation

◆ detail::MemberFunctionAddressor< MemberFunctionType >

Member Data Documentation

◆ m_BackgroundValue

double itk::simple::LabelShapeStatisticsImageFilter::m_BackgroundValue { 0 }
private

◆ m_ComputeFeretDiameter

bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputeFeretDiameter { false }
private

◆ m_ComputeOrientedBoundingBox

bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputeOrientedBoundingBox { false }
private

◆ m_ComputePerimeter

bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputePerimeter { true }
private

◆ m_Filter

std::unique_ptr<itk::ProcessObject, ProcessObjectDeleter> itk::simple::LabelShapeStatisticsImageFilter::m_Filter {nullptr}
private

Definition at line 410 of file sitkLabelShapeStatisticsImageFilter.h.

◆ m_Labels

std::vector<int64_t> itk::simple::LabelShapeStatisticsImageFilter::m_Labels { std::vector<int64_t>() }
private

Definition at line 391 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetLabels().

◆ m_pfGetBoundingBox

std::function<std::vector<unsigned int>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetBoundingBox
private

Definition at line 382 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetBoundingBox().

◆ m_pfGetCentroid

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetCentroid
private

Definition at line 384 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetCentroid().

◆ m_pfGetElongation

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetElongation
private

Definition at line 385 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetElongation().

◆ m_pfGetEquivalentEllipsoidDiameter

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentEllipsoidDiameter
private

◆ m_pfGetEquivalentSphericalPerimeter

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalPerimeter
private

◆ m_pfGetEquivalentSphericalRadius

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalRadius
private

Definition at line 388 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetEquivalentSphericalRadius().

◆ m_pfGetFeretDiameter

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFeretDiameter
private

Definition at line 389 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetFeretDiameter().

◆ m_pfGetFlatness

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFlatness
private

Definition at line 390 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetFlatness().

◆ m_pfGetIndexes

std::function<std::vector<unsigned int>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetIndexes
private

Definition at line 405 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetIndexes().

◆ m_pfGetNumberOfPixels

std::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixels
private

Definition at line 392 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetNumberOfPixels().

◆ m_pfGetNumberOfPixelsOnBorder

std::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixelsOnBorder
private

Definition at line 393 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetNumberOfPixelsOnBorder().

◆ m_pfGetOrientedBoundingBoxDirection

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxDirection
private

◆ m_pfGetOrientedBoundingBoxOrigin

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxOrigin
private

Definition at line 402 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetOrientedBoundingBoxOrigin().

◆ m_pfGetOrientedBoundingBoxSize

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxSize
private

Definition at line 401 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetOrientedBoundingBoxSize().

◆ m_pfGetOrientedBoundingBoxVertices

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxVertices
private

◆ m_pfGetPerimeter

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeter
private

Definition at line 394 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPerimeter().

◆ m_pfGetPerimeterOnBorder

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorder
private

Definition at line 395 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPerimeterOnBorder().

◆ m_pfGetPerimeterOnBorderRatio

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorderRatio
private

Definition at line 396 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPerimeterOnBorderRatio().

◆ m_pfGetPhysicalSize

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPhysicalSize
private

Definition at line 397 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPhysicalSize().

◆ m_pfGetPrincipalAxes

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalAxes
private

Definition at line 398 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPrincipalAxes().

◆ m_pfGetPrincipalMoments

std::function<std::vector<double>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalMoments
private

Definition at line 399 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetPrincipalMoments().

◆ m_pfGetRegion

std::function<std::vector<unsigned int>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetRegion
private

Definition at line 383 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetRegion().

◆ m_pfGetRLEIndexes

std::function<std::vector<unsigned int>(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetRLEIndexes
private

Definition at line 406 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetRLEIndexes().

◆ m_pfGetRoundness

std::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetRoundness
private

Definition at line 400 of file sitkLabelShapeStatisticsImageFilter.h.

Referenced by GetRoundness().


The documentation for this class was generated from the following file: