21 #ifndef __vtkITKLabelShapeStatistics_h 22 #define __vtkITKLabelShapeStatistics_h 27 #include <vtkMatrix4x4.h> 28 #include <vtkSmartPointer.h> 30 #include <vtkTableAlgorithm.h> 31 #include <vtkVector.h> 34 #include <vtkAddonSetGet.h> 53 void PrintSelf(ostream& os, vtkIndent indent)
override;
80 static std::string GetShapeStatisticAsString(ShapeStatistic statistic);
81 static ShapeStatistic GetShapeStatisticFromString(std::string statisticName);
83 vtkSetObjectMacro(Directions, vtkMatrix4x4);
84 vtkSetStdVectorMacro(ComputedStatistics, std::vector<std::string>);
85 vtkGetStdVectorMacro(ComputedStatistics, std::vector<std::string>);
90 void SetComputeShapeStatistic(std::string statisticName,
bool state);
91 bool GetComputeShapeStatistic(std::string statisticName);
92 void ComputeShapeStatisticOn(std::string statisticName);
93 void ComputeShapeStatisticOff(std::string statisticName);
99 int FillInputPortInformation(
int vtkNotUsed(port), vtkInformation* info)
override;
100 int RequestData(vtkInformation* request,
101 vtkInformationVector** inputVector,
102 vtkInformationVector* outputVector)
override;
Ratio of the area of the hypersphere by the actual area. A value of 1 represents a spherical structur...
Oriented bounding box of the label.
Surface area of the label.
std::vector< std::string > ComputedStatistics
Diameter of the sphere that contains the label.
Principal moments of inertia for the principal axes.
Location of the center of mass of the label.
ITK-based utilities for calculating label statistics. Utilizes itk::LabelImageToShapeLabelMapFilter t...
Square root of the ratio of the second largest principal moment by the second smallest.
Square root of the ratio of the second smallest principal moment by the smallest. A value of 0 repres...
vtkMatrix4x4 * Directions