foam_segmenter only considers foam inside the frame
Merge
Fixed some conversion errors in FoamAllocator