Package ca.eandb.jmist.util.matlab

Examples of ca.eandb.jmist.util.matlab.MatlabWriter


  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.ParallelizableJob#finish()
   */
  public void finish() throws IOException {

    MatlabWriter matlab = new MatlabWriter(createFileOutputStream("tm.mat"));

    int numInSensors = worker.incidentCollector.sensors();
    int numOutSensors = worker.exitantCollector.sensors();
    matlab.write("sca", sca, new int[]{ numOutSensors, numInSensors, channels.length, specimens.length });
    matlab.write("abs", abs, new int[]{ numInSensors, channels.length, specimens.length });
    matlab.write("cast", cast, new int[]{ numInSensors, channels.length, specimens.length });
    matlab.write("specimens", specimenNames);
    matlab.write("channels", channelNames);
    matlab.write("adjoint", worker.adjoint);

    writeCollectorSphere("incident", worker.incidentCollector, matlab);
    writeCollectorSphere("exitant", worker.exitantCollector, matlab);

    matlab.close();

  }
View Full Code Here


   * @see ca.eandb.jmist.framework.Display#finish()
   */
  public void finish() {
    try {
      OutputStream stream = getOutputStream();
      MatlabWriter matlab = new MatlabWriter(stream);
      matlab.write(imageName, array, null,
          new int[] { height, width, 3 },
          new int[] { 3 * width, 3, 1 });
      matlab.flush();
      matlab.close();
    } catch (IOException e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

   * @see ca.eandb.jmist.framework.Display#finish()
   */
  public void finish() {
    try {
      OutputStream stream = getOutputStream();
      MatlabWriter matlab = new MatlabWriter(stream);
      matlab.write(imageName, array, null,
          new int[] { height, width, channels },
          new int[] { channels * width, channels, 1 });
      matlab.flush();
      matlab.close();
    } catch (IOException e) {
      throw new UnexpectedException(e);
    }
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.util.matlab.MatlabWriter

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.