boolean[] mask = createStainMask(redOD, greenOD, blueOD, minStain, stains.isH_DAB() || stains.isH_E(), true, null);
if (stains == null || !stains.isH_E()) { throw new IllegalArgumentException("No valid H&E stains supplied!"); if (stains == null || !stains.isH_E()) { throw new IllegalArgumentException("No valid H&E stains supplied!"); if (stains == null || !stains.isH_E()) { throw new IllegalArgumentException("No valid H&E stains supplied!"); if (stains == null || !stains.isH_E()) { throw new IllegalArgumentException("No valid H&E stains supplied!");