I am doing the watershed on a nxnx2 matrix and I am surprised that the segmentation of the first and the second layer are the same. Small example reproducing the behaviour.
I think I understand now why that is the case: the metric induced by the pixel neighbourhood makes points diagonally adjacent in different layer as close as direct neighbours.
I am doing the
watershed
on a nxnx2 matrix and I am surprised that the segmentation of the first and the second layer are the same. Small example reproducing the behaviour.