I second the post of Juan regarding the watershed for non sparse data.

As for clearing image borders you have a function from the segmentation module here :
http://scikit-image.org/docs/dev/api/skimage.segmentation.html#clear-border



On Thursday, 19 February 2015 01:04:10 UTC+1, Adam Hughes wrote:
Hi,

In ImageJ, one can select watershedding to break up connected regions of particles.  Are there any examples of using watershed in this capacity in scikit image?   All of the examples I see seem to use watershedding to do segmentation, not to break connected particles in an already-segmented black and white image.  

Also, is there a straightforward way to remove particles on a the edge of an image?  Sorry, googling is failing me, but I know this is possible.

Thanks