|
Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
|
#include <iostream>#include <iomanip>#include <sstream>#include <string>#include <cstring>#include <stdlib.h>#include <fstream>#include <cmath>#include <ctime>#include <unistd.h>#include <cstdlib>#include <limits>#include <assert.h>#include "InOut.h"#include "PolygonBuilder.h"#include "Polygon.h"#include "Ellipse.h"#include "PH0.h"#include "Curvature.h"#include "Component.h"Macros | |
| #define | NUM_THREADS 32 |
Functions | |
| bool | parse_args (int argc, char **argv, std::string *INFILE, bool *verbose) |
| Parse command-line arguments for 2DShape. | |
Variables | |
| int | threadids [NUM_THREADS] |
| pthread_t | threads [NUM_THREADS] |
| bool parse_args | ( | int | argc, |
| char ** | argv, | ||
| std::string * | infile, | ||
| bool * | verbose ) |
Parse command-line arguments for 2DShape.
Parses command-line arguments for the 2DShape program, extracting the input file path and verbose flag. This is the simplest version that analyzes a single polygon.
| argc | Argument count from main() | |
| argv | Argument vector from main() | |
| [out] | infile | Path to input polygon file (set by -i flag) |
| [out] | verbose | Enable verbose output (set by -v or –verbose flag, default: false) |