Debugging watershed kernel