PANDORE Version 6 | GREYC-IMAGE |
L'opérateur pregionsphericity crée une collection col_out contenant un tableau nommé attr de float dans lequel le ième correspond au degré de sphéricité de la région de label i+1.
La sphéricité est le rapport entre le rayon du cercle inscrit et le rayon du cercle circonscrit:
sphericite = rayon inscrit/rayon circonscrit.
Ce rapport vaut 1 pour un cercle.
Retourne SUCCESS ou FAILURE.
Affiche la sphéricité des régions obtenues par une simple binarisation de l'image tangram.pan:
pbinarization 100 1e30 tangram.pan a.pan plabeling 8 a.pan b.pan pregionsphericity sphericity b.pan c.pan pcol2txt c.pan
Auteur: Régis Clouard