I played around with the perimeter from skimage.measure.
In the documentation, the neighborhood is described as:
"neighbourhood : 4 or 8, optional
Neighborhood connectivity for border pixel determination."
yann
-- Yann GAVET Assistant Professor - Ecole Nationale Supérieure des Mines de Saint-Etienne 158 Cours Fauriel, CS 62362, 42023 SAINT-ETIENNE cedex 2 Tel: (33) - 4 7742 0170