This looks like a version problem. Connectivity was added in 0.11.

On Sat, Jun 13, 2015 at 4:33 AM, Josh Warner <> wrote:

I cannot reproduce with everything installed fresh via miniconda on Win7.

>>> from skimage.measure import label
>>> import numpy as np
>>> label(np.zeros(5), connectivity=1)
array([0, 0, 0, 0, 0], dtype=int64)

On Friday, June 12, 2015 at 12:20:43 PM UTC-5, stefanv wrote:

On 2015-06-12 08:04:46, Ji Zhou <> wrote:
> I have the same issue when using scikit image (Anaconda
> distribution, which  is up-to-date) to label some image
> objects. Error messages are:

Can you please verify your version?

import skimage


You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit