static IIntegralImage toIISingleColorIfPossible(IIntegralImage img) { double[] color = uRoot(img).color(); if (!allFractionsZero(color)) ret img; ret IISingleColor(doublesToInts(color)); }