image-js / image-js-typescript

Temporary repository to work on the migration of image-js to TypeScript
https://image-js.github.io/image-js-typescript/
MIT License
5 stars 5 forks source link

computeThreshold is inconsistent #385

Closed EscapedGibbon closed 11 months ago

EscapedGibbon commented 1 year ago

computeThreshold function does not calculate a threshold index (which then can be multiplied by maxValue) but gives a threshold value instead

opatiny commented 11 months ago

The issue was solved in the following commit: 8ca381f

Related issue: #374