Distortion measurement