1. A method of detecting multiple surfaces of an object, the method comprising: setting up system parameters of an imaging system; acquiring two-dimensional images of each of the multiple surfaces of the object at multiple Z steps as defined by the system parameters; and extracting each of the multiple surfaces of the object from the two-dimensional images, wherein each of the multiple surfaces includes a corresponding plurality of data points, each having a corresponding measure of confidence; determining a corresponding confidence threshold for each of the multiple surfaces; and enhancing each of the multiple surfaces using an interpolation filter to modify data points having a measure of confidence less than the corresponding confidence threshold.