You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ---
im2 ---
output ---
======================
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) .
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 ---
im2 ---
output ---
======================
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)
that's make it! :)
The text was updated successfully, but these errors were encountered: