Examples of toXYZ()


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

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

    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

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

    int h = pixels.getHeight();
    for (int ry = 0; ry < h; ry++, y++) {
      int index = (y * width + x) * 3;
      for (int rx = 0; rx < w; rx++) {
        Color pixel = pixels.getPixel(rx, ry);
        CIEXYZ c = pixel.toXYZ();
        array[index++] = c.X();
        array[index++] = c.Y();
        array[index++] = c.Z();
      }
    }
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.