Morphological Operations
Implements connected-component labeling using geodesic dilation:
- Invert the binary image to make objects white.
- Select an unlabeled white pixel as a seed.
- Perform geodesic dilation constrained by the original mask.
- Label each connected region iteratively.
