Skip to content

Match matlab#8

Open
johnwaalsh wants to merge 32 commits into
mainfrom
match_matlab
Open

Match matlab#8
johnwaalsh wants to merge 32 commits into
mainfrom
match_matlab

Conversation

@johnwaalsh
Copy link
Copy Markdown
Member

@johnwaalsh johnwaalsh commented Mar 5, 2026

Improves MATLAB parity for IFCB feature extraction.

  • Replaces sklearn k-means segmentation with a MATLAB-style float32 1D k-means path.
  • Matches MATLAB blob filtering and 8-connected component behavior.
  • Fixes blob ordering, centering, orientation, and nearest-neighbor rotation behavior.
  • Adds Benkrid perimeter calculation for MATLAB-compatible perimeter-derived features.
  • Updates biovolume and surface-area calculations with MATLAB-like distance maps, masking, and float32 accumulation.
  • Handles degenerate convex hull cases more robustly.
  • Matches MATLAB-style summed feature accumulation and zero-to-NaN ratio outputs.
  • Writes slim feature CSVs with stable float formatting.

@johnwaalsh johnwaalsh marked this pull request as ready for review May 12, 2026 14:29
@johnwaalsh johnwaalsh requested a review from joefutrelle May 12, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant