Optimizing two-pass connected-component labeling algorithms
Normalized cuts and image segmentation