further optimization, raster preview of segmentation