Gradient method of mask edge correctionпатент