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

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -