Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. raw_img = array([[202, 150, 137, 121, 195],
  2. [ 94, 113, 217, 68, 248],
  3. [208, 170, 109, 67, 22],
  4. [ 20, 93, 222, 54, 50],
  5. [254, 252, 10, 187, 203]], dtype='uint8')
  6. colored_img = get_colored_img(raw_img)
  7. print(colored_img[..., 0])
  8. print(colored_img[..., 1])
  9. print(colored_img[..., 2])
  10.  
  11. r = slice(1, -1), slice(1, -1)
  12. img = img_as_ubyte(bilinear_interpolation(colored_img))
  13. print()
  14. print(img[r])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement