Foreground-background segmentation for mixed raster content compression by