A contrast-based resolution enhancing technology (RET) determines a
distribution of contrast values for edge fragments in a design layout or
portion thereof. Resolution enhancement is applied to the edge fragments
in a way that increases the number of edge fragments having a contrast
value that exceeds a predetermined threshold.