- Matlab stores "DICOM" data in a 4D array - the first two dimensions are rows and columns, the third dimension is color, and the fourth dimension represents slices.
- If your 3D data is of the form [rows columns slices], you can convert it to the 4D matrix expected as input by the following,
- Refer to the following documentation link for more information on the “reshape” function - https://www.mathworks.com/help/matlab/ref/reshape.html