Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- raw_img = array([[202, 150, 137, 121, 195],
- [ 94, 113, 217, 68, 248],
- [208, 170, 109, 67, 22],
- [ 20, 93, 222, 54, 50],
- [254, 252, 10, 187, 203]], dtype='uint8')
- colored_img = get_colored_img(raw_img)
- print(colored_img[..., 0])
- print(colored_img[..., 1])
- print(colored_img[..., 2])
- r = slice(1, -1), slice(1, -1)
- img = img_as_ubyte(bilinear_interpolation(colored_img))
- print()
- print(img[r])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement