JuliaImages / ImageBinarization.jl

A Julia package of algorithms for analyzing images and automatically binarizing them into background and foreground.
MIT License
35 stars 8 forks source link

`binarize(Gray{Bool}, ...)` doesn't work as expected for SingleHistogramThreshold #83

Closed johnnychen94 closed 3 years ago

johnnychen94 commented 3 years ago

I would expect this work as a more efficient version of Gray{Bool}.(binarize(...)) but there seems some issue here:

julia> img_input = binarize(Gray{Bool}, testimage("mandril"), UnimodalRosin())
ERROR: InexactError: Bool(0.541N0f8)

This seems a bug to me.

cc: @ashwani-rathee