Skip to content

Better Gray to Black and White (BW) conversion #7850

Answered by duaneg3
duaneg3 asked this question in Q&A
Discussion options

You must be logged in to vote

I extended the ImageMath to have abw() and bw() functions.
(the library is quite nice ...)
now runs really fast ...

elif 1==2:
    img1 = ImageMath.eval("bw(a, 127)", a=my_img)
elif 1==1:
    img1 = ImageMath.eval("abw(a, b, 4, 127)", a=my_img, b=imgx)

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@duaneg3
Comment options

Comment options

You must be logged in to vote
1 reply
@duaneg3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@radarhere
Comment options

Comment options

You must be logged in to vote
1 reply
@radarhere
Comment options

Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants