Package ca.eandb.jmist.framework.color

Examples of ca.eandb.jmist.framework.color.DoubleRaster


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 3) {
      private static final long serialVersionUID = -2721143490321662390L;
      protected Color getPixel(double[] raster, int index) {
        return new RGBColor(raster[index], raster[index + 1], raster[index + 2]);
      }
    };
View Full Code Here


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 3) {
      private static final long serialVersionUID = 538645330465767339L;
      protected Color getPixel(double[] raster, int index) {
        return new XYZColor(raster[index], raster[index + 1], raster[index + 2], null);
      }
    };
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 3) {
      private static final long serialVersionUID = 7791621586618189836L;
      protected Color getPixel(double[] raster, int index) {
        return new XYZColor(raster[index], raster[index + 1], raster[index + 2]);
      }
    };
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 1) {
      private static final long serialVersionUID = -2403693898531527409L;
      protected Color getPixel(double[] raster, int index) {
        return new Sample(raster[index]);
      }
    };
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 1) {
      private static final long serialVersionUID = -7544627482087847173L;
      protected Color getPixel(double[] raster, int index) {
        return new LuminanceColor(raster[index]);
      }
    };
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, wavelengths.size()) {
      private static final long serialVersionUID = 7275314194346383855L;
      protected Color getPixel(double[] raster, int index) {
        PolychromeColor pixel = new PolychromeColor();
        for (int i = 0, n = wavelengths.size(); i < n; i++) {
          pixel.values[i] = raster[index++];
View Full Code Here

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.color.ColorModel#createRaster(int, int)
   */
  @Override
  public Raster createRaster(int width, int height) {
    return new DoubleRaster(width, height, 3) {
      private static final long serialVersionUID = 8774357659017319631L;
      protected Color getPixel(double[] raster, int index) {
        return new XYZColor(raster[index], raster[index + 1], raster[index + 2], MultiXYZColorModel.this);
      }
      protected void addPixel(double[] raster, int index, Color pixel) {
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.color.DoubleRaster

Copyright © 2018 www.massapicom. 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.