| CPC G06T 7/55 (2017.01) [G06T 2207/10028 (2013.01)] | 26 Claims |

|
1. A computer-implemented method for generating a depth map of a region of a surface of a workpiece, the computer-implemented method comprising:
receiving a focal image stack, wherein:
the focal image stack includes a plurality of images of the workpiece,
the images image the region of the surface of the workpiece with defined focal plane positions that are different in a depth direction,
a focal plane position is assigned to each of the images, and
image points of the images are respectively assigned to a corresponding object point on the surface of the workpiece;
determining a focus value of each image point of each image of the focal image stack;
fitting a function along the depth direction to the focus values of those image points of the images that are assigned to the same object point;
determining a depth value of each object point on the surface of the workpiece in the depth direction based on an extremum of the fitted function;
generating the depth map of the region of the surface of the workpiece based on the determined depth values;
for each point of the depth map, determining third and fourth correction values; and
generating a depth map of a calibration object before measuring the workpiece,
wherein the respective correction value is determined based on a deviation of the depth map of the calibration object with respect to a known surface profile of the calibration object,
wherein the calibration object is a point grid, and
wherein determining the third and fourth correction values includes:
determining a respective third correction value and a respective fourth correction value for each point of the point grid based on a cost function between an astigmatism model and the depth values of the respective point, and
interpolating the third and fourth correction values based on the respective third and fourth correction values of each point of the point grid.
|