Examples of fromArray()


Examples of ca.eandb.jmist.framework.color.ColorModel.fromArray()

    for (int i = 0; i < n1d.length; i++) {
      n1d[i] = Optics.reflectance(in, n1d[i], n2d[i], normal);
    }

    return colorModel.fromArray(n1d, lambda);
  }

  /**
   * Computes the reflectance at an interface between two conductors for
   * each channel.
View Full Code Here

Examples of ca.eandb.jmist.framework.color.ColorModel.fromArray()

          new Complex(n1d[i], k1d != null ? k1d[i] : 0.0),
          new Complex(n2d[i], k2d != null ? k2d[i] : 0.0),
          normal);
    }

    return colorModel.fromArray(n1d, lambda);
  }

  /** Private constructor to prevent creation of instances. */
  private MaterialUtil() {}

View Full Code Here

Examples of org.opencv.core.MatOfPoint.fromArray()

      for(int i = 0; i < hull.height(); i++){
        int index = (int)hull.get(i,0)[0];
        hp[i] = new Point(pointMat.get(index,0));
      }
      MatOfPoint hullPoints = new MatOfPoint();
      hullPoints.fromArray(hp);

      return new Contour(parent, hullPoints);
  }
 
  /**
 
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.