Gradient and curvature from the photometric-stereo method, including local confidence estimation | Synapse