setDimensionOrder(this, pixels);
int nPlanes = 1;
for (int axisIdx=0; axisIdx<numDimensions(); axisIdx++) {
TypedAxis a = axis(axisIdx);
final PositiveInteger size = new PositiveInteger(size(axisIdx));
if (a.type().equals(Axes.Z)) {
pixels.setSizeZ(size);
} else if (a.type().equals(Axes.CHANNEL)) {
pixels.setSizeC(size);
} else {
// Both T and ObjectPlane go here