package de.mpi.rgblab.tests;
import java.util.Vector;
import de.mpi.rgblab.color.ColorModel;
import de.mpi.rgblab.data.ColorReader;
import de.mpi.rgblab.data.Data;
public class TestData {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("start program");
long currentTimeInSeconds = System.currentTimeMillis();
Data d1 = new Data();
d1.printResolution();
//d1.importData("usa_houshold_and_income_distribution.dat");
d1.importData("usa_houshold_and_income_screen_coordinates.dat");
Vector<ColorModel> rgbColors = ColorReader
.getColorsAsColorModel("colors.dat");
d1.computeSaliencyPrintTime(30, rgbColors);
// d1.precomputeIntegralSaliencyPrintTime();
// d1.computeVisiblityPrintTime(30);
currentTimeInSeconds = System.currentTimeMillis()
- currentTimeInSeconds;
System.out.println("time: " + currentTimeInSeconds + " milliseconds");
try {
Thread.sleep(1000*1000);
} catch (InterruptedException e) {
// the VM doesn't want us to sleep anymore,
// so get back to work
}
}
}