I have a multidimensional array(let's call it 'data'), I print it produce like this
[[[255, 255, 255]
[255, 255, 255]
[0, 0, 0]
[255, 255, 255]]
[[0, 0, 0]
[255, 255, 255]
[0, 0, 0]
[0, 0, 0]]
... and so on
[255, 255, 255]]]
i want to change the content of data like this
[[1,
1,
0,
1]
[0,
1,
0,
0]
... and so on
1]]
[255, 255, 255] become 1, and
[0, 0, 0] become 0
I'm trying with numpy.where, but I'm desperate
How to do that in python programming?
[255, 255, 255]or"[255 255 255]"