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

On Sat, Jun 13, 2015 at 4:33 AM, Josh Warner <silvertrumpet999@gmail.com> 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 <gashjizhou@gmail.com> 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
print(skimage.__version__)

Thanks
Stéfan

--
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 scikit-image+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.