Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #we give this array input to rgb2luv(src) in python codes.
- a2 = N.array([[[0.2, 0.1, 0.2], [0.1, 0.0, 0.1], [0.0, 0.1, 0.2]], [[0.2, 0.1, 0.2], [0.1, 0.0, 0.1], [0.0, 0.1, 0.2]],[[0.2, 0.1, 0.2], [0.1, 0.0, 0.1], [0.0, 0.1, 0.2]]], dtype = N.float64)
- print rgb2luv(a2)
- Desired Output:
- [[[ 0.1577703 0.39215735 0.41656124]
- [ 0.07318546 0.43150599 0.36919105]
- [ 0.12888619 0.23489428 0.36968172]]
- [[ 0.1577703 0.39215735 0.41656124]
- [ 0.07318546 0.43150599 0.36919105]
- [ 0.12888619 0.23489428 0.36968172]]
- [[ 0.1577703 0.39215735 0.41656124]
- [ 0.07318546 0.43150599 0.36919105]
- [ 0.12888619 0.23489428 0.36968172]]]
- Our Output:
- [cube slice 0]
- 0.1965 0.1437 0.1965
- 0.1437 0 0.1437
- 0 0.1437 0.1965
- [cube slice 1]
- 0.3082 0.3130 0.3082
- 0.3130 0.3259 0.3130
- 0.3259 0.3130 0.3082
- [cube slice 2]
- 0.5215 0.5148 0.5215
- 0.5148 0.4963 0.5148
- 0.4963 0.5148 0.5215
Add Comment
Please, Sign In to add comment