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");
}
}