Parse command-line arguments for Comp2DShapes.
Parses command-line arguments for the Comp2DShapes program, extracting input files, distance type, microns per pixel settings, and verbose flag. This version automatically computes focal points (unlike Comp2DShapesFocal).
- Parameters
-
| argc | Argument count from main() |
| argv | Argument vector from main() |
| [out] | file1 | Path to first input polygon file (set by -i1 flag) |
| [out] | file2 | Path to second input polygon file (set by -i2 flag) |
| [out] | disttype | Distance type flag (set by -d flag):
- 0: Fréchet distance - measures similarity between curves, representing the minimum leash length needed for a person walking a dog along each curve
- 1: Ellipse-based distances - compares aspect ratios of inscribed, inscribing, and least-squares fitted ellipses
- 2: Curvature-based distances - includes Willmore energy (bending energy) and Wasserstein distance between curvature distributions
- 3: 2-Wasserstein distance between persistence diagrams - topological shape descriptor based on persistent homology
- 4: All distances - computes all of the above metrics
|
| [out] | microns_per_pixel1 | Microns per pixel conversion for polygon 1 (set by -mpp1 or -mpp flag, default: 1.0) |
| [out] | microns_per_pixel2 | Microns per pixel conversion for polygon 2 (set by -mpp2 or -mpp flag, default: 1.0) |
| [out] | verbose | Enable verbose output (set by -v or –verbose flag, default: false) |
- Returns
- true if arguments were parsed successfully, false otherwise