how can i write a function that receives an image (three-dimensional list) which channels X columns X rows and returns a three-dimensional list, Whose dimensions are columns X rows X channels, that is, a list of two-dimensional images that each represent a color channel Single. for example: how i can split this list:
[[[1,2,3],[4,5,6],[17,18,19],[21,22,23]],[[7,8,9],[10,11,12],[17,18,19],[21,22,23]]]
to get this list:
[[[1,4,17,21],[7,10,17,21]],[[2,5,18,22],[8,11,18,22]],[[3,6,19,23],[9,12,19,23]]]