C continuous, the opposite of Fortran mode (also used by Matlab). This means that n-dimensional data is stored as a long and continuous array in memory. The order of the elements in memory depends on mode C: first, the final dimensions are saved. That is, if you have c by h by w 3d blob, they will be saved one by one in the memory cells, and after the completion of all lines of the first channel, only the lines of the next channel are recorded.
Another way to look at this is that the element i, j, k is stored in
blob[i*w*h + j*w + k]
See this viking page for more details.
source share