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

#include <correa_bindings.h>

Public Member Functions

 PyPolygon (std::string file_path)
 
 PyPolygon (std::string file_path, std::string focal_path)
 
 PyPolygon (std::string file_path, std::vector< double > focal_point)
 
PersistenceDiagram persistence_diagram ()
 
int size ()
 
double length ()
 
double area ()
 
auto vertices ()
 
auto ellipse_max ()
 
auto ellipse_max_a ()
 
auto ellipse_max_b ()
 
auto ellipse_max_ratio ()
 
auto ellipse_min ()
 
auto ellipse_min_a ()
 
auto ellipse_min_b ()
 
auto ellipse_min_ratio ()
 
auto ellipse_lsq ()
 
auto ellipse_lsq_a ()
 
auto ellipse_lsq_b ()
 
auto ellipse_lsq_ratio ()
 
auto willmore ()
 

Public Attributes

Polygon polygon
 

Friends

ostream & operator<< (ostream &out, PyPolygon &P)
 
std::vector< double > compare_polygons (PyPolygon poly1, PyPolygon poly2)
 
double wasserstein_distance (PyPolygon poly1, PyPolygon poly2, int q)
 
double frechet_distance (PyPolygon poly1, PyPolygon poly2)
 
double max_ellipse_distance (PyPolygon poly1, PyPolygon poly2)
 
double min_ellipse_distance (PyPolygon poly1, PyPolygon poly2)
 
double lsq_ellipse_distance (PyPolygon poly1, PyPolygon poly2)
 
double willmore_distance (PyPolygon poly1, PyPolygon poly2)
 
double curv_ot_distance (PyPolygon poly1, PyPolygon poly2)
 

Detailed Description

Expose polygons to python

Member Function Documentation

◆ area()

double correa::PyPolygon::area ( )
inline
Returns
length of the polygon

◆ ellipse_lsq()

auto correa::PyPolygon::ellipse_lsq ( )
inline
Returns
parameters (major axis, minor axis, ratio) of the least squared ellipse

◆ ellipse_lsq_a()

auto correa::PyPolygon::ellipse_lsq_a ( )
inline
Returns
major axis of least square ellipse

◆ ellipse_lsq_b()

auto correa::PyPolygon::ellipse_lsq_b ( )
inline
Returns
minor axis of least square ellipse

◆ ellipse_lsq_ratio()

auto correa::PyPolygon::ellipse_lsq_ratio ( )
inline
Returns
ratio axis of least square ellipse

◆ ellipse_max()

auto correa::PyPolygon::ellipse_max ( )
inline
Returns
parameters (major axis, minor axis, ratio) of the maximum inscribed ellipse

◆ ellipse_max_a()

auto correa::PyPolygon::ellipse_max_a ( )
inline
Returns
major axis of maximum inscribed ellipse

◆ ellipse_max_b()

auto correa::PyPolygon::ellipse_max_b ( )
inline
Returns
minor axis of maximum inscribed ellipse

◆ ellipse_max_ratio()

auto correa::PyPolygon::ellipse_max_ratio ( )
inline
Returns
ratio of maximum inscribed ellipse

◆ ellipse_min()

auto correa::PyPolygon::ellipse_min ( )
inline
Returns
parameters (major axis, minor axis, ratio) of the minimum inscribing ellipse

◆ ellipse_min_a()

auto correa::PyPolygon::ellipse_min_a ( )
inline
Returns
major axis of minimum inscribing ellipse

◆ ellipse_min_b()

auto correa::PyPolygon::ellipse_min_b ( )
inline
Returns
minor axis of minimum inscribing ellipse

◆ ellipse_min_ratio()

auto correa::PyPolygon::ellipse_min_ratio ( )
inline
Returns
ratio axis of minimum inscribing ellipse

◆ length()

double correa::PyPolygon::length ( )
inline
Returns
length of the polygon

◆ persistence_diagram()

PersistenceDiagram correa::PyPolygon::persistence_diagram ( )
inline
Returns
persistence diagram of the radial function from the center.

◆ size()

int correa::PyPolygon::size ( )
inline
Returns
persistence diagram of the radial function from the center in a format for Python.
number of vertices in the polygon

◆ vertices()

auto correa::PyPolygon::vertices ( )
inline
Returns
std::vector<std::vector<double>> of vertices of the polygon

◆ willmore()

auto correa::PyPolygon::willmore ( )
inline
Returns
Willmore energy of the polygon

Friends And Related Symbol Documentation

◆ operator<<

ostream & operator<< ( ostream & out,
PyPolygon & P )
friend

print information about the polygon


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