5 Sep
2013
5 Sep
'13
1:30 a.m.
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. also edge detection not work properly. please reply me ... 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)