boolean[] mask = createStainMask(redOD, greenOD, blueOD, minStain, stains.isH_DAB() || stains.isH_E(), true, null);
boolean doGrayTest = checkColors && (stainsOriginal.isH_E() || stainsOriginal.isH_DAB()); double sqrt3 = 1/Math.sqrt(3); double grayThreshold = Math.cos(0.15);
if (stains == null || !stains.isH_DAB()) { throw new IllegalArgumentException("No valid H-DAB stains supplied!"); if (stains == null || !stains.isH_DAB()) { throw new IllegalArgumentException("No valid H-DAB stains supplied!"); if (stains == null || !stains.isH_DAB()) { throw new IllegalArgumentException("No valid H-DAB stains supplied!"); if (stains == null || !stains.isH_DAB()) { throw new IllegalArgumentException("No valid H-DAB stains supplied!");