Watershed segmentation Visual Studio C++ to Java Android Studio

Because that part in C++ is like that

    watershed(image, markers);

So the only way I found to translate is with Imgproc.watershed(image,markers);.