Package ca.eandb.jmist.framework.measurement

Examples of ca.eandb.jmist.framework.measurement.ColorSensorArray


  @Override
  public void initialize() {
    this.results = new ColorSensorArray[wavelengths.length * incidentAngles.length * specimens.length];
    for (int i = 0; i < this.results.length; i++) {
      ColorModel colorModel = this.getWavelength(i).getColorModel();
      this.results[i] = new ColorSensorArray(worker.collector.sensors(), colorModel);
      maxChannels = Math.max(maxChannels, colorModel.getNumChannels());
    }
  }
View Full Code Here


   */
  public void submitTaskResults(Object task, Object results,
      ProgressMonitor monitor) {

    PhotometerTask    info    = (PhotometerTask) task;
    ColorSensorArray  sensorArray  = (ColorSensorArray) results;

    this.results[info.measurementIndex].merge(sensorArray);

    monitor.notifyProgress(++this.tasksReturned, this.totalTasks);

View Full Code Here

        SphericalCoordinates      incidentAngle      = this.incidentAngles[incidentAngleIndex];

        for (int wavelengthIndex = 0; wavelengthIndex < this.wavelengths.length; wavelengthIndex++, n++) {

          WavelengthPacket      wavelength        = this.wavelengths[wavelengthIndex];
          ColorSensorArray      sensorArray        = this.results[n];

          for (int sensor = 0; sensor < worker.collector.sensors(); sensor++) {

            SphericalCoordinates  exitantAngle      = worker.collector.getSensorCenter(sensor);
            double          solidAngle        = worker.collector.getSensorSolidAngle(sensor);
            double          projectedSolidAngle    = worker.collector.getSensorProjectedSolidAngle(sensor);
            Color          raw            = sensorArray.getTotalWeight(sensor);
            Color          reflectance        = raw.divide(this.outstandingSamplesPerMeasurement);

            out.printf(
                "%d,%f,%f,%d,%d,%f,%f,%f,%f,%d,%s,%s,%s,%s",
                specimenIndex,
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.framework.measurement.ColorSensorArray

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.