Package de.mpi.rgblab.utils

Examples of de.mpi.rgblab.utils.LogUtil


  private double threshold;

  // int number_all_elements =0;

  public Optimizer() {
    logger = new LogUtil(
        "log/opt_in_co_cmpOverallVis_weighting4_huePreservingFixed.dat",
        true);
    numberImprovements = 6;
    threshold = 40;
  }
View Full Code Here


    numberImprovements = 6;
    threshold = 40;
  }

  public Optimizer(String logFile) {
    logger = new LogUtil(logFile, true);
    numberImprovements = 6;
    threshold = 40;
  }
View Full Code Here

    numberImprovements = 6;
    threshold = 40;
  }
 
  public Optimizer(String logFile, double threshold, int numberImprovements) {
    logger = new LogUtil(logFile, true);
    this.numberImprovements = numberImprovements;
    this.threshold = threshold;
  }
View Full Code Here

//    data.computeSaliency(radius, classColors);
//    data.computeVisibility(radius);
//    data.export(args[2]);
    Optimizer opt = new Optimizer(logFile); //, 0.60, 6);
    classColors = opt.optimize(data, classColors, radiusView, radiusSurround);
    LogUtil l = new LogUtil(outputFile, true);
   
    for (int i =0; i< classColors.size(); i++) {
      l.log(Integer.toString(Math.round((float)classColors.get(i).getDimension_1())));
      l.log(",");
      l.log(Integer.toString(Math.round((float)classColors.get(i).getDimension_2())));
      l.log(",");
      l.logln(Integer.toString(Math.round((float)classColors.get(i).getDimension_3())));
      //l.logln("");
    }
   
    l.close();
    System.out.println("End");
   

  }
View Full Code Here

    // data.computeSaliency(radius, classColors);
    // data.computeVisibility(radius);
    // data.export(args[2]);
    Optimizer opt = new Optimizer(logFile, 8, 6);
    classColors = opt.optimize(data, classColors, radiusView, radiusSurround);
    LogUtil l = new LogUtil(outputFile, true);

    for (int i = 0; i < classColors.size(); i++) {
      l.log(Integer.toString(Math.round((float)classColors.get(i).getDimension_1())));
      l.log(",");
      l.log(Integer.toString(Math.round((float)classColors.get(i).getDimension_2())));
      l.log(",");
      l.logln(Integer.toString(Math.round((float)classColors.get(i).getDimension_3())));
    }

    l.close();
    System.out.println("End");
   

  }
View Full Code Here

TOP

Related Classes of de.mpi.rgblab.utils.LogUtil

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.