Robocup Segmentation
This example takes a scene from a Robocup match and segments its elements. A further step could identify each robot by its unique colored-coded pattern and the ball by its size and color. Analyzing sequential frames of the match it is possible to track robots and ball position and develop the team strategy.Segmentation Algorithm
- 1. Load input image.
- 2. Change green pixels to white pixels.
- 3. Apply intensity thresholding for separating foreground from background.
- 4. Apply morphological closing to group separated parts of the same object.
- 5. Use FloodFill segmentation to get the segments.
- 6. Draw the segments coordinates in the original image.
It was originally published on Stack Overflow:
"How to perform the image segmentation in java?"