I'm trying to over-segment an image by using the marker-based watershed implementation of OpenCV in Java.
My idea was to search for all the local minima and use those as markers. Unfortunately, watershed requires a type CV_8U matrix as the marker input and therefore, I can't really get more than 255 markers.
Does anyone have a workaround for this problem or another solution to achieve over-segmentation using OpenCV?
The stochastic watershed could help you in this problem. The principle is to apply multiple watersheds.
In your case, you can do:
An other solution would be to use the SMIL library. You can call it from Java, and you are sure that the algorithm implemented is fast and not biased.