Intrinsic calibration and rectification