Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.CIExyY.Y()


      Yavg = Math.exp(Yavg) - DELTA;

      double Ymid = 1.03 - 2.0 / (2.0 + Math.log10(Yavg + 1.0));
      white = new CIExyY(1.0 / 3.0, 1.0 / 3.0, Yavg / Ymid);

      double ySliderValue = Math.log(white.Y()) / Math.log(2.0);

      suspendChangeEvents = true;
      whiteLuminanceSlider.setValue(ySliderValue);
      whiteXChromaticitySlider.setValue(MAX_CHROMATICITY_SLIDER_VALUE / 3);
      whiteYChromaticitySlider.setValue(MAX_CHROMATICITY_SLIDER_VALUE / 3);
View Full Code Here


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ToneMapper#apply(ca.eandb.jmist.framework.color.CIEXYZ)
   */
  public CIEXYZ apply(CIEXYZ hdr) {
    CIExyY xyY = CIExyY.fromXYZ(hdr);
    double Y = xyY.Y() * yScale;
    if (yWhiteSquared < Double.POSITIVE_INFINITY) {
      Y = Y * (1.0 + Y / yWhiteSquared) / (1.0 + Y);
    } else {
      Y = Y / (1.0 + Y);
    }
View Full Code Here

    if (yWhiteSquared < Double.POSITIVE_INFINITY) {
      Y = Y * (1.0 + Y / yWhiteSquared) / (1.0 + Y);
    } else {
      Y = Y / (1.0 + Y);
    }
    return ColorUtil.convertxyY2XYZ(xyY.x(), xyY.y(), Y);
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.