/** * Derive (or better: guess) an (adopted) white point by mixing two white points. Luminance will * also be mixed. See CIE:159:2004, section 5. * * @param background_white the whitepoint of the background * @param surround_white the whitepoint of the surround * @param bgFactor the background weight * @return XYZ mixed from background and surround */ public static CIEXYZ mixedWhitepoint( CIEXYZ background_white, CIEXYZ surround_white, float bgFactor) { return CIEXYZ.blend( new CIEXYZ[] {background_white, surround_white}, new float[] {bgFactor, 1 - bgFactor}); }