PANDORE Version 6 | GREYC-IMAGE |
peccentricityselection selects regions from their eccentricity degree. The parameter relation specifies the order relation to the threshold value that is used to select or not a region.
Eccentricity measures how much the region deviates from being circular. It is defined as the ratio of the length of the short axis to the length of the long axis:
(Mxx+Myy-sqrt( (Mxx-Myy)*(Mxx-Myy)+4*Mxy*Mxy)) eccentricity= ---------------------------------------------- (Mxx+Myy+sqrt( (Mxx-Myy)*(Mxx-Myy)+4*Mxy*Mxy))
The maximum value is 1.0 for a square or a circle.
Returns the number of selected regions.
Selects regions with the highest eccentricity degree:
peccentricity 3 0 rin.pan rout.pan
Sélection de régions sur leur valeur d'exentricité.
Author: Régis Clouard