Package de.mpi.rgblab.data

Examples of de.mpi.rgblab.data.Data


  public static void main(String[] args) {
 
    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.computeSaliencyTest(30, rgbColors);

    currentTimeInSeconds = System.currentTimeMillis()
        - currentTimeInSeconds;
    System.out.println("time: " + currentTimeInSeconds + " milliseconds");
View Full Code Here


  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;
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) {
    // TODO Auto-generated method stub
    Data d = new Data();
    //Data0 d0 = new Data0();

    d.importData("usa_houshold_and_income_screen_coordinates.dat");
    //d0.importData("usa_houshold_and_income_screen_coordinates.dat");

    Vector<ColorModel> rgbColors = ColorReader
        .getColorsAsColorModel("colors.dat");
    //d.computeSaliencyTest(20, rgbColors);
    d.computeSaliency(20, rgbColors);
    d.computeVisibility(20);
    d.export();
  }
View Full Code Here

  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.importDataTest("usa_houshold_and_income_screen_coordinates.dat");
    d1.export();
    currentTimeInSeconds = System.currentTimeMillis()
        - currentTimeInSeconds;
    System.out.println("time: " + currentTimeInSeconds + " milliseconds");

    // try {
View Full Code Here

    int surroundAngle = Integer.parseInt(args[1]);
   
    int radiusView =  VisUtil.getViewRadius(distance);
    int radiusSurround =  VisUtil.getRadius(distance, surroundAngle);
   
    Data data = new Data();
    data.importData(inputData);
   
    Vector<ColorModel> classColors = new Vector<ColorModel>();
    classColors = ColorReader.getColorsAsColorModel(colorData);

    if (classColors.size() < data.getClassNumbers()) {
      System.out.println("The color file needs to have at least " + data.getClassNumbers() + " colors!");
      return;
    }
     
   
   
View Full Code Here

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

  }
View Full Code Here

      // TODO Auto-generated method stub
      System.out.println("start");
      long currentTimeInSeconds = System.currentTimeMillis() ;

     
      Data d1 = new Data();
      d1.importData("usa_houshold_and_income_screen_coordinates.dat");
      Vector<ColorModel> rgbColors = ColorReader.getColorsAsColorModel("colors.dat");
      d1.computeSaliency(30, rgbColors);
     
      currentTimeInSeconds = System.currentTimeMillis()
      - currentTimeInSeconds;
  System.out.println("time: " + currentTimeInSeconds
      + " milliseconds");
View Full Code Here

//    String logFile = args[3];
//    String inputData = args[2];
//    String colorData = args[1];
//    String outputFile = args[4];

    Data data = new Data();
    data.importData(inputData);

    Vector<ColorModel> classColors = new Vector<ColorModel>();
    classColors = ColorReader.getColorsAsColorModel(colorData);

    if (classColors.size() < data.getClassNumbers()) {
      System.out.println("The color file needs to have at least "
          + data.getClassNumbers() + " colors!");
      return;
    }

    // data.computeSaliency(radius, classColors);
    // data.computeVisibility(radius);
View Full Code Here

  }

  protected void setUp() {
   
   
    d = new Data();
    d0 = new Data0();
   
    d.importData("usa_houshold_and_income_screen_coordinates.dat");
    d0.importData("usa_houshold_and_income_screen_coordinates.dat");
   
View Full Code Here

   */
  public static void main(String[] args) {
    System.out.println("start program");
    long currentTimeInSeconds = System.currentTimeMillis();

    Data d1 = new Data();
    d1.printResolution();
    //d1.importData("usa_houshold_and_income_distribution.dat");

    d1.importDataTest("usa_houshold_and_income_screen_coordinates.dat");
    d1.precomputeIntegralClassLabelNumbers_Export(600);
//    Vector<ColorModel> rgbColors = ColorReader
//        .getColorsAsColorModel("colors.dat");
//    d1.computeSaliencyPrintTime(30, rgbColors);

    currentTimeInSeconds = System.currentTimeMillis()
View Full Code Here

TOP

Related Classes of de.mpi.rgblab.data.Data

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.