Skip to content

feat: public histogram API - #76

Merged
0717lee merged 1 commit into
mainfrom
feat/histogram-api
Jul 31, 2026
Merged

feat: public histogram API#76
0717lee merged 1 commit into
mainfrom
feat/histogram-api

Conversation

@0717lee

@0717lee 0717lee commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Adds Image::histogram_luma() (reusing the exact 256-bin BT.601 binning Otsu is built on) and Image::histogram_rgb() -> (r, g, b) bins. 4 new tests: bin sums equal pixel count, flat image concentrates in one bin (all others asserted empty), hand-counted mixed image, bimodal binning agreement. 167/167 tests passing. Closes #73

@0717lee
0717lee merged commit d1294d5 into main Jul 31, 2026
1 check passed
@0717lee
0717lee deleted the feat/histogram-api branch July 31, 2026 11:37
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.

Histogram API

1 participant