diff --git a/src/main/java/org/janelia/saalfeldlab/n5/universe/metadata/axes/AxisUtils.java b/src/main/java/org/janelia/saalfeldlab/n5/universe/metadata/axes/AxisUtils.java index dce8e33..ee4a30a 100644 --- a/src/main/java/org/janelia/saalfeldlab/n5/universe/metadata/axes/AxisUtils.java +++ b/src/main/java/org/janelia/saalfeldlab/n5/universe/metadata/axes/AxisUtils.java @@ -254,7 +254,6 @@ public static RandomAccessibleInterval< fillPermutation( p ); // TODO under what conditions can I return the image directly? - RandomAccessibleInterval imgTmp = img; while( imgTmp.numDimensions() < 5 ) imgTmp = Views.addDimension(imgTmp, 0, 0 ); @@ -436,12 +435,14 @@ public static DefaultAxisMetadata defaultN5ViewerAxes(final N5SpatialDatasetMeta final int nd = meta.getAttributes().getNumDimensions(); final String[] labels; - if (nd == 2) + if (nd == 2) labels = new String[]{"x", "y"}; - else if (nd == 3) + else if (nd == 3) labels = new String[]{"x", "y", "z"}; - else if( nd == 4) + else if (nd == 4) labels = new String[]{"x", "y", "z", "t"}; + else if (nd == 5) + labels = new String[]{"x", "y", "z", "c", "t"}; else return null;