1. A device comprising: processor configured to: extract, as a characteristic point, a pattern projected on an object from an imaging image obtained by imaging the pattern projected on the object; calculate a parameter configured to minimize a distance between the characteristic point on an imaging image plane and a straight line on the imaging image plane obtained by projecting a projection light ray corresponding to the characteristic point onto the imaging image plane; and output the parameter to calibrate the device.