Hello,
I am trying to label the boundaries of an image that was segmented and labelled. I am doing something wrong because the code below returns

auroura_bound=segmentation.find_boundaries(props,connectivity=1,mode='thick',background=0)
  File "/usr/local/lib/python3.4/dist-packages/skimage/segmentation/boundaries.py", line 148, in find_boundaries
    ndim = label_img.ndim
AttributeError: 'list' object has no attribute 'ndim'

  1. label_image=measure.label(g_median_bin, background=0) # g_median_bin is a binary image
  2. label_image=label_image+1 # adjusted from -1 to 0
  3. props = measure.regionprops(label_image,intensity_image=g_median_bin) # creating a regionprops object
  4. label_bound=segmentation.find_boundaries(props,connectivity=1,mode='thick',background=0) # finding boundaries
  5. boundaries=segmentation.mark_boundaries(g_median,label_bound)



label_bound=segmentation.find_boundaries(props,connectivity=1,mode='thick',background=0)
  File "/usr/local/lib/python3.4/dist-packages/skimage/segmentation/boundaries.py", line 148, in find_boundaries
    ndim = label_img.ndim
AttributeError: 'list' object has no attribute 'ndim'

I think line 4. is redundant and not required for mark_boundary?!