Converts a label image to a label map and valuates the shape attributes.
More...
#include <sitkLabelShapeStatisticsImageFilter.h>
|
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 void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
|
static unsigned int | GetGlobalDefaultNumberOfThreads () |
|
static double | GetGlobalDefaultCoordinateTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultCoordinateTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static double | GetGlobalDefaultDirectionTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultDirectionTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
|
virtual itk::ProcessObject * | GetActiveProcess () |
|
virtual void | OnActiveProcessDelete () |
|
virtual void | onCommandDelete (const itk::simple::Command *cmd) SITK_NOEXCEPT |
|
virtual void | PreUpdate (itk::ProcessObject *p) |
|
virtual void | RemoveITKObserver (EventCommand &e) |
|
| NonCopyable () |
|
static void | FixNonZeroIndex (TImageType *img) |
|
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<class TImageType > |
static Image | CastITKToImage (TImageType *img) |
|
static const itk::EventObject & | GetITKEventObject (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) |
|
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://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
- Author
- Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
- See also
- ShapeLabelObject , LabelShapeOpeningImageFilter , LabelStatisticsOpeningImageFilter
- Wiki Examples:
- Convert an itk::Image consisting of labeled regions to a ShapeLabelMap
- See also
- itk::LabelImageToShapeLabelMapFilter for the Doxygen on the original ITK class.
Definition at line 56 of file sitkLabelShapeStatisticsImageFilter.h.
◆ MemberFunctionType
typedef void(Self::* itk::simple::LabelShapeStatisticsImageFilter::MemberFunctionType) (const Image &image1) |
|
private |
◆ PixelIDTypeList
◆ Self
◆ ~LabelShapeStatisticsImageFilter()
virtual itk::simple::LabelShapeStatisticsImageFilter::~LabelShapeStatisticsImageFilter |
( |
| ) |
|
|
virtual |
◆ LabelShapeStatisticsImageFilter()
itk::simple::LabelShapeStatisticsImageFilter::LabelShapeStatisticsImageFilter |
( |
| ) |
|
Default Constructor that takes no arguments and initializes default parameters
◆ ComputeFeretDiameterOff()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOff |
( |
| ) |
|
|
inline |
◆ ComputeFeretDiameterOn()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOn |
( |
| ) |
|
|
inline |
◆ ComputeOrientedBoundingBoxOff()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeOrientedBoundingBoxOff |
( |
| ) |
|
|
inline |
◆ ComputeOrientedBoundingBoxOn()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeOrientedBoundingBoxOn |
( |
| ) |
|
|
inline |
◆ ComputePerimeterOff()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOff |
( |
| ) |
|
|
inline |
◆ ComputePerimeterOn()
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOn |
( |
| ) |
|
|
inline |
◆ Execute() [1/2]
void itk::simple::LabelShapeStatisticsImageFilter::Execute |
( |
const Image & |
image1 | ) |
|
Execute the filter on the input image
◆ Execute() [2/2]
void itk::simple::LabelShapeStatisticsImageFilter::Execute |
( |
const Image & |
image1, |
|
|
double |
backgroundValue, |
|
|
bool |
computeFeretDiameter, |
|
|
bool |
computePerimeter, |
|
|
bool |
computeOrientedBoundingBox |
|
) |
| |
Execute the filter on the input image with the given parameters
◆ ExecuteInternal()
template<class TImageType >
void itk::simple::LabelShapeStatisticsImageFilter::ExecuteInternal |
( |
const Image & |
image1 | ) |
|
|
private |
◆ GetBackgroundValue()
double itk::simple::LabelShapeStatisticsImageFilter::GetBackgroundValue |
( |
| ) |
const |
|
inline |
◆ GetBoundingBox()
std::vector<unsigned int> itk::simple::LabelShapeStatisticsImageFilter::GetBoundingBox |
( |
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 130 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 139 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 94 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 122 of file sitkLabelShapeStatisticsImageFilter.h.
◆ GetComputePerimeter()
bool itk::simple::LabelShapeStatisticsImageFilter::GetComputePerimeter |
( |
| ) |
const |
|
inline |
◆ 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 148 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 157 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 166 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 175 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 184 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 193 of file sitkLabelShapeStatisticsImageFilter.h.
◆ GetLabels()
std::vector<int64_t> itk::simple::LabelShapeStatisticsImageFilter::GetLabels |
( |
| ) |
const |
|
inline |
◆ GetName()
std::string itk::simple::LabelShapeStatisticsImageFilter::GetName |
( |
| ) |
const |
|
inlinevirtual |
◆ 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 210 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 219 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 309 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 300 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 291 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 318 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 228 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 237 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 246 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 255 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 264 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 273 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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 282 of file sitkLabelShapeStatisticsImageFilter.h.
◆ 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()
Self& itk::simple::LabelShapeStatisticsImageFilter::SetBackgroundValue |
( |
double |
BackgroundValue | ) |
|
|
inline |
◆ SetComputeFeretDiameter()
Self& 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 85 of file sitkLabelShapeStatisticsImageFilter.h.
◆ SetComputeOrientedBoundingBox()
Self& 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 113 of file sitkLabelShapeStatisticsImageFilter.h.
◆ SetComputePerimeter()
Self& 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 99 of file sitkLabelShapeStatisticsImageFilter.h.
◆ ToString()
std::string itk::simple::LabelShapeStatisticsImageFilter::ToString |
( |
| ) |
const |
|
virtual |
◆ detail::MemberFunctionAddressor< MemberFunctionType >
◆ m_BackgroundValue
double itk::simple::LabelShapeStatisticsImageFilter::m_BackgroundValue |
|
private |
◆ m_ComputeFeretDiameter
bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputeFeretDiameter |
|
private |
◆ m_ComputeOrientedBoundingBox
bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputeOrientedBoundingBox |
|
private |
◆ m_ComputePerimeter
bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputePerimeter |
|
private |
◆ m_Filter
◆ m_Labels
std::vector<int64_t> itk::simple::LabelShapeStatisticsImageFilter::m_Labels |
|
private |
◆ m_MemberFactory
◆ m_pfGetBoundingBox
nsstd::function<std::vector<unsigned int>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetBoundingBox |
|
private |
◆ m_pfGetCentroid
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetCentroid |
|
private |
◆ m_pfGetElongation
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetElongation |
|
private |
◆ m_pfGetEquivalentEllipsoidDiameter
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentEllipsoidDiameter |
|
private |
◆ m_pfGetEquivalentSphericalPerimeter
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalPerimeter |
|
private |
◆ m_pfGetEquivalentSphericalRadius
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalRadius |
|
private |
◆ m_pfGetFeretDiameter
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFeretDiameter |
|
private |
◆ m_pfGetFlatness
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFlatness |
|
private |
◆ m_pfGetNumberOfPixels
nsstd::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixels |
|
private |
◆ m_pfGetNumberOfPixelsOnBorder
nsstd::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixelsOnBorder |
|
private |
◆ m_pfGetOrientedBoundingBoxDirection
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxDirection |
|
private |
◆ m_pfGetOrientedBoundingBoxOrigin
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxOrigin |
|
private |
◆ m_pfGetOrientedBoundingBoxSize
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxSize |
|
private |
◆ m_pfGetOrientedBoundingBoxVertices
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetOrientedBoundingBoxVertices |
|
private |
◆ m_pfGetPerimeter
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeter |
|
private |
◆ m_pfGetPerimeterOnBorder
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorder |
|
private |
◆ m_pfGetPerimeterOnBorderRatio
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorderRatio |
|
private |
◆ m_pfGetPhysicalSize
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPhysicalSize |
|
private |
◆ m_pfGetPrincipalAxes
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalAxes |
|
private |
◆ m_pfGetPrincipalMoments
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalMoments |
|
private |
◆ m_pfGetRoundness
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetRoundness |
|
private |
The documentation for this class was generated from the following file: