Method for calibrating and correcting the scanning distortion of any optical coherence tomography system by using reference patterns and obtaining mathematical relationships between the positions of the reference points in a reference pattern and the local coordinates of said reference points, said coordinates are obtained by means of said optical coherence tomography system.