NawelMerouani
Messages postés3Date d'inscriptionsamedi 24 décembre 2011StatutMembreDernière intervention12 avril 2012
-
12 avril 2012 à 12:01
cs_Julien39
Messages postés6414Date d'inscriptionmardi 8 mars 2005StatutModérateurDernière intervention29 juillet 2020
-
12 avril 2012 à 14:12
bonjour j'essaye d' ecrire un méthode qui fait la segmentation par croissance de region mais il n'affiche rien, voici la méthode
int rgb2=img.getRGB(thisPoint.x,thisPoint.y);
int rgb1 = img.getRGB(rx, ry);
if (labels[rx][ry] ==0) {
if (rgb1 == rgb2){
mustDo.add(new Point(rx,ry));
labels[rx][ry] = 1;
}
}
}
}
int [] output = new int [larg*haut];
int i =0;
//int[] mat=new int[larg*haut];
for (int h=0;h<haut;h++)
for(int w=0;w<larg;w++)
output[i++]=labels[w][h];