Get border pixels of labelled region
Hi all, Is there a way to get the pixels on the border of a labelled region in an image using skimage? I've done edge detection, and then filled the resulting shapes (after some edge linking), and would now like to be able to get the pixels on the border of each of these shapes. I would have thought that getting borders would be an option in regionprops, but it doesn't seem to be. Any ideas? Cheers, Robin
Hi, Do you mean the functionality provided by `skimage.measure.find_contours`? Johannes Schönberger Am 02.07.2013 um 22:59 schrieb Robin Wilson <r.t.wilson.bak@googlemail.com>:
Hi all,
Is there a way to get the pixels on the border of a labelled region in an image using skimage? I've done edge detection, and then filled the resulting shapes (after some edge linking), and would now like to be able to get the pixels on the border of each of these shapes. I would have thought that getting borders would be an option in regionprops, but it doesn't seem to be.
Any ideas?
Cheers,
Robin
-- 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/groups/opt_out.
but this function not working... how to use it. reply me On Wednesday, July 3, 2013 2:40:46 AM UTC+5:30, Johannes Schönberger wrote:
Hi,
Do you mean the functionality provided by `skimage.measure.find_contours`?
Johannes Schönberger
Am 02.07.2013 um 22:59 schrieb Robin Wilson <r.t.wil...@googlemail.com<javascript:>>:
Hi all,
Is there a way to get the pixels on the border of a labelled region in an image using skimage? I've done edge detection, and then filled the resulting shapes (after some edge linking), and would now like to be able to get the pixels on the border of each of these shapes. I would have thought that getting borders would be an option in regionprops, but it doesn't seem to be.
Any ideas?
Cheers,
Robin
-- 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...@googlegroups.com <javascript:>. For more options, visit https://groups.google.com/groups/opt_out.
but this syntax segmentation.find_boundaries(img) not work where img is an image On Mon, Sep 2, 2013 at 4:37 PM, Payal Gupta <erpayal2010@gmail.com> wrote:
but this function not working... how to use it. reply me
On Wednesday, July 3, 2013 2:40:46 AM UTC+5:30, Johannes Schönberger wrote:
Hi,
Do you mean the functionality provided by `skimage.measure.find_**contours`?
Johannes Schönberger
Am 02.07.2013 um 22:59 schrieb Robin Wilson <r.t.wil...@googlemail.com**>:
Hi all,
Is there a way to get the pixels on the border of a labelled region in an image using skimage? I've done edge detection, and then filled the resulting shapes (after some edge linking), and would now like to be able to get the pixels on the border of each of these shapes. I would have thought that getting borders would be an option in regionprops, but it doesn't seem to be.
Any ideas?
Cheers,
Robin
-- 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...@**googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
--
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/rXRS0KT2PdU/unsubscribe. To unsubscribe from this group and all of its topics, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
hi Juan..
image = io.imread("IMG_2.jpg")
i attach a image.
thresh = filter.threshold_otsu(image) binary = image > thresh
thresholding do b'coz of i want binary image.
imag= color.colorconv.rgb2grey(binary) img = array(imag)
it done b'coz after thresholding image have some rgb component but after do rgb2grey no rgb component so i do this.
contours = measure.find_contours(imag,0.9,'high')
i want close contour array like in matlab bwboundaries works. do you know it?
print contours fig, (ax0, ax1) = plt.subplots(ncols=2) ax0.imshow(imag ,cmap=plt.cm.gray) ax0.set_title('Roberts Edge Detection') ax0.axis('off') ax1.imshow(edge_canny, cmap=plt.cm.gray) ax1.set_title('Sobel Edge Detection') ax1.axis('off')
see the attachment ... reply me
participants (3)
-
Johannes Schönberger
-
Payal Gupta
-
Robin Wilson