-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Description
Hi Matthew,
Great piece of code. And thanks for putting this together from the Switching Eds blog post.
And I found some wrong in the codes, its confused me a lot, then i fixed that. See below.
im1 ---

======================
that's because output_im(type is np.float64), some pixels value out of range(0~255)!!!
We only need to add two line scripts as below to before this code line output_im_t = output_im.astype(np.uint8) .
output_im = np.maximum(output_im, 0) output_im = np.minimum(output_im, 255)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels


