Skip to content

Feature/segment histogram management - #2314

Open
Josecongas wants to merge 5 commits into
ivmartel:developfrom
Josecongas:feature/segment-histogram-management
Open

Josecongas wants to merge 5 commits into
ivmartel:developfrom
Josecongas:feature/segment-histogram-management

Conversation

@Josecongas

@Josecongas Josecongas commented Oct 7, 2026 •

Copy link
Copy Markdown
  • Add MaskImage.getHistogramBySegment(image, segmentId) to build per-volume intensity histograms for voxels belonging to one segment (mask is 3D; reused across volumes of a 4D reference image).
  • Add getHistogramIntervalPercentages(volumeHistograms, thresholds, names) to compute percentage of histogram counts in semi-open intervals built from interior cut points ([min, t0), [t0, t1), …, [tLast, max)).
  • Cover both APIs with unit tests (maskImage.test.js, histogram.test.js).

@ivmartel ivmartel added the enhancement New feature or request label Oct 7, 2026
@ivmartel ivmartel added this to the 0.37.0 milestone Oct 7, 2026
jgascona and others added 2 commits October 7, 2026 16:14
Co-authored-by: Cursor <cursoragent@cursor.com>
… size, orientation, and origin for each slice.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants