hello everyone... i will try this code,in this i want to do read a image then do edge detection after that find the boundaries of image object. but find_boundaries return me a bool array but i need a integer array. is it any solution of this. code:: import Image from skimage import segmentation as seg,io,filter imge = io.imread("IMG_1.jpg") thresh = filter.threshold_otsu(imge) binary = imge> thresh edge_canny = filter.canny(binary) bimg =seg.find_boundaries(binary) print(bimg) fig, (ax0, ax1) = plt.subplots(ncols=2) ax0.imshow(bimg,cmap=plt.cm.gray) ax1.imshow(binary,cmap=plt.cm.gray) On Tue, Sep 3, 2013 at 7:42 PM, Stéfan van der Walt <stefan@sun.ac.za>wrote:
On 3 Sep 2013 11:45, "Payal Gupta" <erpayal2010@gmail.com> wrote:
thanks it working but i confused when i use function of skimage library.
i want to change rgb image to a graylevel image but inbuilt function rgb2gray not convert gray level image.
reply.
If you want help on this list, please provide code examples of what you are attempting.
Stéfan
-- 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.