Package de.mpi.rgblab.tests.junit

Source Code of de.mpi.rgblab.tests.junit.ComputeSaliencyTest

package de.mpi.rgblab.tests.junit;

import java.util.Vector;

import junit.framework.TestCase;
import de.mpi.rgblab.color.ColorModel;
import de.mpi.rgblab.data.ColorReader;
import de.mpi.rgblab.data.Data;
import de.mpi.rgblab.data.Data0;

public class ComputeSaliencyTest extends TestCase {

  Data d;
  Data0 d0;
  public void testComputeSaliency() {

//    for (int i = 0; i < d.getSaliency().size(); i ++)
//     
//      assertTrue((d.getSaliency().get(i) == d0.getSaliency().get(i)));
     
  }

  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");
   
    Vector<ColorModel> rgbColors = ColorReader
    .getColorsAsColorModel("colors.dat");
    d.computeSaliencyTest(20, rgbColors);
    d0.computeSaliencyTest(20, rgbColors, 1);
  }

  protected void tearDown() {
   
  }

 
}
TOP

Related Classes of de.mpi.rgblab.tests.junit.ComputeSaliencyTest

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.