Skip to content

Match matlab#8

Merged
johnwaalsh merged 32 commits into
mainfrom
match_matlab
May 28, 2026
Merged

Match matlab#8
johnwaalsh merged 32 commits into
mainfrom
match_matlab

Conversation

@johnwaalsh

@johnwaalsh johnwaalsh commented Mar 5, 2026

Copy link
Copy Markdown
Member

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
@johnwaalsh johnwaalsh merged commit 7da48de into main May 28, 2026
1 check passed
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