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'
- label_image=measure.label(g_median_bin, background=0) # g_median_bin is a binary image
- label_image=label_image+1 # adjusted from -1 to 0
- props = measure.regionprops(label_image,intensity_image=g_median_bin) # creating a regionprops object
- label_bound=segmentation.find_boundaries(props,connectivity=1,mode='thick',background=0) # finding boundaries
- 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?!