Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [1]: from image import Image
- In [2]: from matrix import Matrix
- In [3]: i = Image([
- ...: Matrix([[1, 2]]),
- ...: Matrix([[3, 4]]),
- ...: Matrix([[5, 6]])
- ...: ])
- In [4]:
- In [4]: print(i.getPixel(0, 0))
- [1.0, 3.0, 5.0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement