Improved gradient/isophote approximation