Can anyone here explain to me what the "tol" parameter in the watershed algorithm implemented in the BioConductor package EBImage (and lidR) does?
I find the explanation in the EBImage help difficult to understand:
The minimum height of the object in the units of image intensity between its highest point (seed) and the point where it contacts another object (checked for every contact pixel). If the height is smaller than the tolerance, the object will be combined with one of its neighbors, which is the highest.
Shouldn't it be: if the height is higher than the tolerance, it will be combined with its neighbor?