C order or F order?

You should take a look at Data Representation chapter, especially section 4.1.7 Importing Image Data from a Buffer.

In ITK, shapes mean IJK, which usually (identity orientation) means WHD. And ordering is C-style, not Fortran-style.

1 Like