Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
Loading...
Searching...
No Matches
correa::Curvature Class Reference

#include <Curvature.h>

Public Member Functions

double Willmore (Polygon &polygon)
 
double curvOT (Polygon &curve1, Polygon &curve2)
 
void curvHist (Polygon &polygon, int *nhist1, double *x1, double *hist1)
 
double histOT (Polygon &curve1, Polygon &curve2)
 

Detailed Description

Curvature class. Used to calculate various curvature related properties.

Member Function Documentation

◆ curvHist()

void correa::Curvature::curvHist ( Polygon & polygon,
int * nhist,
double * x,
double * hist )

Build histogram of "curvature" for a polygon describe what it does?

Parameters
curve1Polygon representing the first curve
curve2Polygon representing the second curve
nhist
x
hist

◆ curvOT()

double correa::Curvature::curvOT ( Polygon & curve1,
Polygon & curve2 )

Calculate the Wasserstein distance between two curves, using the curvatures at each vertex to compute a cost matrix

Parameters
curve1Polygon representing the first curve
curve2Polygon representing the second curve
Returns
d_OT Wasserstein distance between two curves

◆ histOT()

double correa::Curvature::histOT ( Polygon & curve1,
Polygon & curve2 )

Calculate the Wasserstein distance between two historgrams of curvatures

Parameters
curve1Polygon representing the first curve
curve2Polygon representing the second curve

◆ Willmore()

double correa::Curvature::Willmore ( Polygon & polygon)

Calculate the Willmore energy of a polygon.

Parameters
polygonPolygon object
Returns
E Willmore energy

The documentation for this class was generated from the following file: