21#ifndef __vtkITKLabelShapeStatistics_h
22#define __vtkITKLabelShapeStatistics_h
27#include <vtkMatrix4x4.h>
28#include <vtkSmartPointer.h>
30#include <vtkTableAlgorithm.h>
34#include <vtkAddonSetGet.h>
53 void PrintSelf(ostream& os, vtkIndent indent)
override;
101 vtkInformationVector** inputVector,
102 vtkInformationVector* outputVector)
override;
void SetComputeShapeStatistic(std::string statisticName, bool state)
void PrintSelf(ostream &os, vtkIndent indent) override
std::vector< std::string > ComputedStatistics
static ShapeStatistic GetShapeStatisticFromString(std::string statisticName)
void ComputeShapeStatisticOff(std::string statisticName)
@ Roundness
Ratio of the area of the hypersphere by the actual area. A value of 1 represents a spherical structur...
@ OrientedBoundingBox
Oriented bounding box of the label.
@ Flatness
Square root of the ratio of the second smallest principal moment by the smallest. A value of 0 repres...
@ Perimeter
Surface area of the label.
@ PrincipalMoments
Principal moments of inertia for the principal axes.
@ FeretDiameter
Diameter of the sphere that contains the label.
@ Elongation
Square root of the ratio of the second largest principal moment by the second smallest.
@ Centroid
Location of the center of mass of the label.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
static std::string GetShapeStatisticAsString(ShapeStatistic statistic)
void ComputeShapeStatisticOn(std::string statisticName)
static vtkITKLabelShapeStatistics * New()
~vtkITKLabelShapeStatistics() override
vtkGetStdVectorMacro(ComputedStatistics, std::vector< std::string >)
bool GetComputeShapeStatistic(std::string statisticName)
vtkMatrix4x4 * Directions
vtkITKLabelShapeStatistics()
int FillInputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
vtkSetStdVectorMacro(ComputedStatistics, std::vector< std::string >)