I have an image of size (1080,1920,3) stored in a numpy array and am trying to index it using an index array of size (6,2). My code is below and it runs, however the output dimensions are (2,6,3), which is not what I expect.
A = inPix[np.arange(6), 2darray]
This method above is from the answers here. Can anyone help me understand whats wrong and how I can get a (6,3) output array?