scikit image - Watershed segmentation in Python with skimage does not stop running -


i'm having trouble implementation of watershed segmentation algorithm in python using scikit-image.

my sample code below:

from scipy import ndimage ndi skimage import feature import numpy np  cells = binary_image_of_interest distance = ndi.distance_transform_edt(cells)  local_maxi = feature.peak_local_max(     distance,     footprint=np.ones((3, 3), dtype=np.bool),     indices=false,     labels = measure.label(cells) ) 

but when run code seems continue long time (up 1 h) no solution. i'm pretty sure it's not machine being slow because other scripts run times comparable on skimage website.

if able out it'd appreciated!


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -