Package ca.eandb.jmist.framework.color

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


          ((double) whiteXChromaticitySlider.getValue()) / (double) MAX_CHROMATICITY_SLIDER_VALUE,
          ((double) whiteYChromaticitySlider.getValue()) / (double) MAX_CHROMATICITY_SLIDER_VALUE,
          Math.pow(2.0, whiteLuminanceSlider.getValue()));
    }

    return new LinearToneMapper(white.toXYZ());
  }

  public static void main(String[] args) {
    JFrame frame = new JFrame();
    JLinearToneMapperPanel factory = new JLinearToneMapperPanel();
View Full Code Here


    Yavg /= (double) n;
    Yavg = Math.exp(Yavg) - delta;

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

}
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.