Shortest distance watershed transformation.