Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.CIEXYZ.toRGB()


    for (int y = 0; y < h; y++) {
      for (int x = 0; x < w; x++) {
        CIEXYZ xyz = hdrImage.get(x, y);
        if (xyz != null) {
          xyz = toneMapper.apply(xyz);
          int rgb = xyz.toRGB().toR8G8B8();
          ldrImage.setRGB(x, y, rgb);
        }
      }
    }
    super.repaint();
View Full Code Here


      ToneMapper toneMapper = toneMapperFactory.createToneMapper(image);

      for (int y = 0; y < height; y++) {
        for (int x = 0; x < width; x++) {
          CIEXYZ xyz = toneMapper.apply(image.get(x, y));
          int rgb = xyz.toRGB().toR8G8B8();
          bi.setRGB(x, y, rgb);
        }
      }

      ImageIO.write(bi, formatName, os);
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.