I have a 3D matrix measuring 25 (rows) x 320 (cols) x 235 (channels)
For each of the 25 rows, I want to extract a 2D slice (320 x 235) so that I have 25 2D matrices.
I am not sure how to do this in OpenCV.
I was thinking about wrapping a three-dimensional matrix, so I have 320 (rows) x 235 (cols) x 25 (channels), and then use split to get 25 matrices, but transpose doesn't work (MATLAB doesn't even allow transposition on multidimensional arrays)
Then I tried to redo it to no avail.
Can i use NAryMatIterator? Or if there is any other way to complete this process?
source share