How yaman-ajaj/curvature_estimation_bacterianearsurface_0610 works
This repository is a MATLAB pipeline for estimating 2D trajectory curvature, validating methods against synthetic ground truth, tuning parameters, and comparing results. The documented workflow runs from synthetic-data generation or supplied tracks through near-surface track analysis and curvature estimation to saved results, validation, and visualization. The README documents the main calls and data flow; no source excerpts were provided, so relationships beyond those documented are omitted.
Main entry points: analyzeAllTracks.m Track analyzer · curvatureResults_Clean_circlefit_step1_20260927_163525.mat Curvature results · groundTruthComparison.m Ground-truth comparison · run_sweep_tests.m Parameter sweeps
Components 18
Trajectory data
- Synthetic generator
create_synthetic_trajectories.m - Synthetic tracks
Fake_synthetic_trajectories_Clean.mat - Input tracks
- Track analyzer
analyzeAllTracks.m - Curvature results
curvatureResults_Clean_circlefit_step1_20260927_163525.mat
Curvature estimation
- Circle fitting
curvature_estimation_leastSquaresCircle.m - Tangent-angle method
curvatureEstimationTangentAngle.m - Central differences
curvature_estimation_centralDiff.m - Local polynomial
curvature_estimation_localPoly.m - Spline methods
curvature_estimation_splineDerivative.m - Trajectory smoothing
smoothTrajectorySpline.m
Validation and tuning
- Known curvature
groundTruth.mat - Ground-truth comparison
groundTruthComparison.m - Parameter sweeps
run_sweep_tests.m
Comparison and visualization
- Method comparison
compareCurvatureVariationAcrossResultFiles.m - Track visualizations
Plot_Trajectories.m - Comparative track plots
plotTrackByIndexComparative.m
Other components
- Researcher
Connections 22
- Researcher → Synthetic generator: generates data
README.md - Synthetic generator → Synthetic tracks: saves tracks
README.md - Researcher → Track analyzer: runs analysis
README.md - Synthetic tracks → Track analyzer: provides tracks
README.md - Input tracks → Track analyzer: provides tracks
README.md - Track analyzer → Circle fitting: runs selected method
README.md - Track analyzer → Tangent-angle method: runs selected method
README.md - Track analyzer → Central differences: runs selected method
README.md - Track analyzer → Local polynomial: runs selected method
README.md - Track analyzer → Spline methods: runs selected method
README.md - Spline methods → Trajectory smoothing: smooths path
README.md - Track analyzer → Curvature results: saves results
README.md - Ground-truth comparison → Curvature results: loads results
README.md - Ground-truth comparison → Known curvature: checks error
README.md - Parameter sweeps → Known curvature: measures RMSE
README.md - Parameter sweeps → Circle fitting: runs method
- Method comparison → Curvature results: compares results
README.md - Track visualizations → Input tracks: visualizes tracks
README.md - Comparative track plots → Curvature results: plots curvature
README.md - Researcher → Ground-truth comparison: inspects errors
README.md - Researcher → Parameter sweeps: tunes parameters
README.md - Researcher → Track visualizations: views results
README.md