Re: problem with measure.label
Hi, I have the same issue when using scikit image (Anaconda distribution, which is up-to-date) to label some image objects. Error messages are: from skimage.measure import label import numpy as np label(np.zeros(5), connectivity=1) ---------------------------------------------------------------------------TypeError Traceback (most recent call last)<ipython-input-2-df99425b8b1f> in <module>() 2 import numpy as np 3 ----> 4 label(np.zeros(5), connectivity=1) TypeError: label() got an unexpected keyword argument 'connectivity' Could you help? Ji On Monday, 4 May 2015 16:46:09 UTC+1, Julien Derr wrote:
Hi everyone, it is me again ... I got this error with the label function TypeError: label() got an unexpected keyword argument 'connectivity'
but I used it exactly like written in the help :
cc= label(binary2,connectivity=2)
I thought it was maybe a problem of version, but it is written in my own help when I type ?label, so what could it be ? ideas?
thanks again!
Julien
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
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
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.
participants (4)
-
Ji Zhou
-
Josh Warner
-
Juan Nunez-Iglesias
-
Stefan van der Walt