Advertisement
wandrake

Untitled

Sep 17th, 2014
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. In [1]: from image import Image
  2.  
  3. In [2]: from matrix import Matrix
  4.  
  5. In [3]: i = Image([
  6.    ...:                 Matrix([[1, 2]]),
  7.    ...:                 Matrix([[3, 4]]),
  8.    ...:                 Matrix([[5, 6]])
  9.    ...:         ])
  10.  
  11. In [4]:
  12.  
  13. In [4]: print(i.getPixel(0, 0))
  14. [1.0, 3.0, 5.0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement