1. A method for obtaining distance and image information of an object using an optical instrument, the method comprising: defining, in an image, an area to be scanned; obtaining a plurality of measurement pixels of the object within the area to be scanned, the plurality of measurement pixels corresponding to a plurality of positions to be measured on the object; providing a default distance between the plurality of positions and the optical instrument; and computing, using a conversion algorithm, an approximation of coordinates of the plurality of positions to be measured based on the default distance between the plurality of positions and the optical instrument, and for each position of the plurality of positions: adjusting an optical axis of the optical instrument onto each position; measuring a distance to each position; and determining, using the conversion algorithm, updated coordinates of each position based on the distance.