Package de.mpi.rgblab.apps

Source Code of de.mpi.rgblab.apps.ShellApp1

package de.mpi.rgblab.apps;

import java.util.Vector;

import de.mpi.rgblab.color.ColorModel;
import de.mpi.rgblab.data.Data;
import de.mpi.rgblab.data.ColorReader;

public class ShellApp1 {

  /**
   * @param args
   */
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    startShell(args)
  }

  public static void startShell(String[] args) {
   
    if (args.length != 3) {
      System.out.println("three parameters - the first is the radius. The socond is the file with the colors. The third is the output file");
    }
    Data data = new Data();

    int radius = new Integer(args[0]).intValue();
   
    Vector<ColorModel> classColors = new Vector<ColorModel>();
    classColors = ColorReader.getColorsAsColorModel(args[1]);
   
    data.computeSaliency(radius, classColors);
    data.computeVisibility(radius);
    data.export(args[2]);
    System.out.println("Finish: the output data are in measures.dat");
   

  }
 
}
TOP

Related Classes of de.mpi.rgblab.apps.ShellApp1

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.