Volume Cartographer 2.27.0
EnergyMetrics.hpp
Go to the documentation of this file.
1#pragma once
2
6
8{
16{
17public:
40 static double ActiveContourInternal(
41 const FittedCurve& curve, double k1, double k2);
42
61 static double TotalEnergy(
62 const FittedCurve& curve,
63 double alpha,
64 double k1,
65 double k2,
66 double beta,
67 double delta);
68
74 static double AbsCurvatureSum(const FittedCurve& curve);
75
84 const FittedCurve& curve, int index, int windowSize);
85
91 static double WindowedArcLength(const FittedCurve& curve, int windowSize);
92};
93} // namespace volcart::segmentation
A collection of energy metrics for evaluating a FittedCurve.
static double LocalWindowedArcLength(const FittedCurve &curve, int index, int windowSize)
Calculate the arc length of the curve within a window centered at a point along the curve.
static double TotalEnergy(const FittedCurve &curve, double alpha, double k1, double k2, double beta, double delta)
Combinatorial energy metric for a FittedCurve.
static double AbsCurvatureSum(const FittedCurve &curve)
Sum of the absolute value of local curvature at each point along the curve.
static double ActiveContourInternal(const FittedCurve &curve, double k1, double k2)
Calculate the active contour internal energy of a FittedCurve.
static double WindowedArcLength(const FittedCurve &curve, int windowSize)
Average LocalWindowedArcLength() across the entire curve.
Fits a curve to a set of points for resampling.
Definition: FittedCurve.hpp:20
Segmentation algorithms and utilities library