Although it's not a straightforward process a series of Vorononoi polygons makes a pretty good Centreline. I think it might work for bananas.
https://gis.stackexchange.com/questions/318721/creating-cent...