Empirical calibration of the near-infrared Ca ii triplet — II. The stellar atmospheric parameters