Skip to content

Better Otsu's method - #740

Closed
bioinformatist wants to merge 2 commits into
image-rs:mainfrom
bioinformatist:fix/better_otsu
Closed

Better Otsu's method#740
bioinformatist wants to merge 2 commits into
image-rs:mainfrom
bioinformatist:fix/better_otsu

Conversation

@bioinformatist

@bioinformatist bioinformatist commented Nov 19, 2025

Copy link
Copy Markdown

The original Otsu's method is logically correct, however, the float precision issue is fatal during the subtraction if the intra-group means are approximately equal, which will fail in Miri test. That's why an equivalent formula was introduced.

For details, please refer to the documentation (already in Katex format).

The contribution document also be modified to mention the necessity of Miri.

This was referenced Nov 19, 2025
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