Login  Register

Re: Watershed - operates differently to description

Posted by Gabriel Landini on May 19, 2015; 3:22pm
URL: http://imagej.273.s1.nabble.com/Watershed-operates-differently-to-description-tp5012869p5012877.html

On Tuesday 19 May 2015 14:01:08 Jeremy Adler wrote:
> my guess is that the software is examining the line of pixels between the
> two ultimate points, using the distance transform, and making the divide at
> the minima along this line.

Hi,
I think another (however more convoluted) way to achieve that result is:

1) find out how many ultimate points there are (in this case n=2),

2) go back to the original and sequentially erode only until you have 2 blobs,

3) now sequentially dilate without merging inside the original (as a mask,
that is: no_merge_dilation AND original) until idempotence.

I think (but haven't tried) that would get round the 254 EDM levels limitation
that Michael mentioned?
 
Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html