fill and contour retention logic refined by enhancing contour
resolutions using interpolation.