A processing device includes: a coordinate acquisition unit that acquires a moving amount of a measuring probe and a probe output; a matrix generation unit that generates a correction matrix including linear correction elements and non-linear correction elements; and a probe output correction unit that corrects the probe output with the correction matrix. The coordinate acquisition unit acquires the moving amount and the probe output of the measuring probe in each of measurement points in a quantity larger than or equal to the sum of the number of the linear correction elements and the number of the non-linear correction elements. Consequently, a non-linear error of the probe output supplied from the measuring probe can be corrected, and thus shape coordinates of an object to be measured can be obtained with high accuracy.