Re: label_boundaries problem with ndim = label_img.ndim
You are passing a list of regionprops (props, in your code) to "find_boundaries", whereas it expects an array: a single image of labeled objects (label_img, in your code).
On Wed, Dec 2, 2015 at 5:33 PM, Eyal Saiet firstname.lastname@example.org wrote:
Stefan, I do not understand what is not true about the label_image object. bellow is the code, in addition I added a plot of the label_image object.
- label_image=measure.label(g_median_bin, background=0)
- label_image +=1
origin='lower') 5. plt.title('label_image') 6. plt.show() 7. props = measure.regionprops(label_image,intensity_image =g_median_bin) 8. label_bound=segmentation.find_boundaries(props,connectivity=1,mode= 'thick',background=0) 9. boundaries=segmentation.mark_boundaries(g_median,label_bound)
[image: Inline image 1]
On Tue, Dec 1, 2015 at 8:09 PM, Stefan van der Walt email@example.com wrote:
On 2015-12-01 21:00:16, Arctic_python firstname.lastname@example.org wrote:
ndim = label_img.ndim
AttributeError: 'list' object has no attribute 'ndim'
- label_image=measure.label(g_median_bin, background=0) #
is a binary image
That does not seem to be true, given the error message.
-- You received this message because you are subscribed to a topic in the Google Groups "scikit-image" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/scikit-image/PwmizxFahYE/unsubscribe. To unsubscribe from this group and all its topics, send an email to email@example.com. To post to this group, send an email to firstname.lastname@example.org. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/87zixt8mie.fsf%40berkeley.edu . For more options, visit https://groups.google.com/d/optout.
-- Eyal Saiet
Project manager Remote sensing and in-situ measurements
Geophysical Institute University of Alaska Fairbanks Fairbanks, AK 99775 (907) 750 6555 (cell)
-- 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 email@example.com. To post to this group, send email to firstname.lastname@example.org. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/CA%2BysReAKgzF%3DJXEjz7hti8sz... https://groups.google.com/d/msgid/scikit-image/CA%2BysReAKgzF%3DJXEjz7hti8sz0EBS_Hr%3DPaFWTxN6FV-GtROB0w%40mail.gmail.com?utm_medium=email&utm_source=footer .
For more options, visit https://groups.google.com/d/optout.