[ACCEPTED]-How to I use PIL Image.point(table) method to apply a threshold to a 256 gray image?-threshold
Accepted answer
I found the complete solution in this answer 2 "Write TIFF file in python from String". The function must include 1 "and 255"
threshold = 191
im = im.point(lambda p: p > threshold and 255)
Try im.point(lambda p: p > 190)
and post the results.
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.