Here you can find the source of assertXYPlanesCorrectlyOriented(final int[] dimIndices)
static void assertXYPlanesCorrectlyOriented(final int[] dimIndices)
//package com.java2s; public class Main { /**// ww w .j av a 2 s .c o m * Throws an Exception if the planes of a Dataset are not compatible with * legacy ImageJ. */ static void assertXYPlanesCorrectlyOriented(final int[] dimIndices) { if (dimIndices[0] != 0) { throw new IllegalArgumentException("Dataset does not have X as the first axis"); } if (dimIndices[1] != 1) { throw new IllegalArgumentException("Dataset does not have Y as the second axis"); } } }