1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Iterator it = cles.iterator();
String cle1,cle2;
int[][]pixels1,pixels2;
//System.out.println("je vérifie:");
for(int i=0;i<=hash.size();i++)
{
if(it.hasNext())
{
cle1=(String) it.next(); System.out.println(cle1);
pixels1=hash.get(cle1);
for(int j=i+1;j<=hash.size();j++)
{
if(it.hasNext())
{
cle2=(String) it.next();
pixels2=hash.get(cle2);
String key=cle1+cle2;
int[][]intersect=intersection(pixels1,pixels2);
if(intersect!=null)
{
Object[] args=new Object[4];
args[0]=intersect;
args[1]=cle1;
args[2]=cle2;
args[3]=seg;
// createNewAgent(key,"helloworldagent.Focalisant", args);
}
}
}
}
} |