Get oriented bounding boxes for each segment

This feature is already available in Segment Statistics module. See complete example here.