ITK-based utilities for calculating label statistics. Utilizes itk::LabelImageToShapeLabelMapFilter to calcualte label shape statistics (https://itk.org/Doxygen/html/classitk_1_1LabelImageToShapeLabelMapFilter.html) Label centroid and flatness are the only statistics calculated by default. For a list of availiable parameters, see: vtkITKLabelShapeStatistics::ShapeStatistic Calculated statistics can be changed using the SetComputeShapeStatistic/ComputeShapeStatisticOn/ComputeShapeStatisticOff methods. Output statistics are represented in a vtkTable where each column represents a statistic and each row is a different label value.
More...
#include <Libs/vtkITK/vtkITKLabelShapeStatistics.h>
ITK-based utilities for calculating label statistics. Utilizes itk::LabelImageToShapeLabelMapFilter to calcualte label shape statistics (https://itk.org/Doxygen/html/classitk_1_1LabelImageToShapeLabelMapFilter.html) Label centroid and flatness are the only statistics calculated by default. For a list of availiable parameters, see: vtkITKLabelShapeStatistics::ShapeStatistic Calculated statistics can be changed using the SetComputeShapeStatistic/ComputeShapeStatisticOn/ComputeShapeStatisticOff methods. Output statistics are represented in a vtkTable where each column represents a statistic and each row is a different label value.
Definition at line 48 of file vtkITKLabelShapeStatistics.h.
◆ Superclass
◆ ShapeStatistic
Shape statistic parameters See parameter definitions and formulas here: http://hdl.handle.net/1926/584
Enumerator |
---|
Centroid | Location of the center of mass of the label.
|
OrientedBoundingBox | Oriented bounding box of the label.
|
FeretDiameter | Diameter of the sphere that contains the label.
|
Perimeter | Surface area of the label.
|
Roundness | Ratio of the area of the hypersphere by the actual area. A value of 1 represents a spherical structure.
|
Flatness | Square root of the ratio of the second smallest principal moment by the smallest. A value of 0 represents a flat structure.
|
Elongation | Square root of the ratio of the second largest principal moment by the second smallest.
|
PrincipalMoments | Principal moments of inertia for the principal axes.
|
PrincipalAxes | |
ShapeStatistic_Last | |
Definition at line 57 of file vtkITKLabelShapeStatistics.h.
◆ vtkITKLabelShapeStatistics()
vtkITKLabelShapeStatistics::vtkITKLabelShapeStatistics |
( |
| ) |
|
|
protected |
◆ ~vtkITKLabelShapeStatistics()
vtkITKLabelShapeStatistics::~vtkITKLabelShapeStatistics |
( |
| ) |
|
|
overrideprotected |
◆ ComputeShapeStatisticOff()
void vtkITKLabelShapeStatistics::ComputeShapeStatisticOff |
( |
std::string |
statisticName | ) |
|
◆ ComputeShapeStatisticOn()
void vtkITKLabelShapeStatistics::ComputeShapeStatisticOn |
( |
std::string |
statisticName | ) |
|
◆ FillInputPortInformation()
int vtkITKLabelShapeStatistics::FillInputPortInformation |
( |
int |
vtkNotUsedport, |
|
|
vtkInformation * |
info |
|
) |
| |
|
overrideprotected |
◆ GetClassName()
virtual const char* vtkITKLabelShapeStatistics::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetComputeShapeStatistic()
bool vtkITKLabelShapeStatistics::GetComputeShapeStatistic |
( |
std::string |
statisticName | ) |
|
◆ GetShapeStatisticAsString()
static std::string vtkITKLabelShapeStatistics::GetShapeStatisticAsString |
( |
ShapeStatistic |
statistic | ) |
|
|
static |
◆ GetShapeStatisticFromString()
static ShapeStatistic vtkITKLabelShapeStatistics::GetShapeStatisticFromString |
( |
std::string |
statisticName | ) |
|
|
static |
◆ IsA()
virtual int vtkITKLabelShapeStatistics::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkITKLabelShapeStatistics::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
◆ PrintSelf()
void vtkITKLabelShapeStatistics::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
◆ RequestData()
int vtkITKLabelShapeStatistics::RequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
overrideprotected |
◆ SafeDownCast()
◆ SetComputeShapeStatistic()
void vtkITKLabelShapeStatistics::SetComputeShapeStatistic |
( |
std::string |
statisticName, |
|
|
bool |
state |
|
) |
| |
Set/Get if the the specified statistic should be computed. Label centroid and flatness are computed by default. Other statistics are listed in the ShapeStatistic enum.
◆ SetDirections()
virtual void vtkITKLabelShapeStatistics::SetDirections |
( |
vtkMatrix4x4 * |
| ) |
|
|
virtual |
◆ vtkGetStdVectorMacro()
vtkITKLabelShapeStatistics::vtkGetStdVectorMacro |
( |
ComputedStatistics |
, |
|
|
std::vector< std::string > |
|
|
) |
| |
◆ vtkSetStdVectorMacro()
vtkITKLabelShapeStatistics::vtkSetStdVectorMacro |
( |
ComputedStatistics |
, |
|
|
std::vector< std::string > |
|
|
) |
| |
◆ ComputedStatistics
std::vector<std::string> vtkITKLabelShapeStatistics::ComputedStatistics |
|
protected |
◆ Directions
vtkMatrix4x4* vtkITKLabelShapeStatistics::Directions |
|
protected |
The documentation for this class was generated from the following file: