Implementation of the Felsenwalb's graph segmentation method.