filtering image entry values based on a threshold

22 Nov
2016
22 Nov
'16
1:49 a.m.
Dear All,
In one code segment, I once saw an approach of filtering image values as follows using cv2. In Scikit image, if I want to realize the same functionality, how to do it?
import cv2 img = cv2.threshold(img, 0.5, 1., cv2.THRESH_BINARY)[1].astype(np.uint8
Thanks,
huaiyang
2387
Age (days ago)
2387
Last active (days ago)
0 comments
1 participants
participants (1)
-
wine lover