# Unwarping an Image

Unwarping an image is the application of the calibration model to create a rectified, distortion free image.

* To unwarp an image, use the method [`ECameraCalibration::Unwarp`](../../../doxygen_cpp/classeVision_1_1ECameraCalibration.html#a1e4713651fbbe8b02aaa213a66b50b5c) [<sub>.NET</sub>](../../../doxygen_cs/classeVision_1_1ECameraCalibration.html#a045b373e8086c195ac8a708251fc1cb4) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECameraCalibration.html#a55754307f89356aada5db8b1996770bd).
* If the calibration model is fixed, you can speed up the unwarping process by first computing a lookup table with [`ECameraCalibration::SetupUnwarp`](../../../doxygen_cpp/classeVision_1_1ECameraCalibration.html#ae892d4f55cb9d0158dc4777762e80fb0) [<sub>.NET</sub>](../../../doxygen_cs/classeVision_1_1ECameraCalibration.html#a9b86e91cee0b347c1a5747a3f05de444) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECameraCalibration.html#ab29a0a5a30320eb4a98cc1446e6cdf20).
* Use [`ECameraCalibration::GetUnwarpedCalibration`](../../../doxygen_cpp/classeVision_1_1ECameraCalibration.html#a64abf76b64127b36d1c337727f69a253) [<sub>.NET</sub>](../../../doxygen_cs/classeVision_1_1ECameraCalibration.html#a1c98c02f8b4673fa429ef977c512d9c9) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECameraCalibration.html#aa31bd37c2a00692dd984106f6c556e20) to get the calibration of the unwarped image.
  * The calibration of an unwarped image is an affine transformation.
  * It has the modes [`ECalibrationMode_Scaled`](../../../doxygen_cpp/namespaceeVision.html#aa4f09c74296350db3ffce101d476f05a) [<sub>.NET</sub>](../../../doxygen_cs/namespaceeVision.html#aadc222f93604cb16a11491a0bf6e52ae) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECalibrationMode.html), [`ECalibrationMode_Anisotropic`](../../../doxygen_cpp/namespaceeVision.html#aa4f09c74296350db3ffce101d476f05a) [<sub>.NET</sub>](../../../doxygen_cs/namespaceeVision.html#aadc222f93604cb16a11491a0bf6e52ae) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECalibrationMode.html), [`ECalibrationMode_Inverse`](../../../doxygen_cpp/namespaceeVision.html#aa4f09c74296350db3ffce101d476f05a) [<sub>.NET</sub>](../../../doxygen_cs/namespaceeVision.html#aadc222f93604cb16a11491a0bf6e52ae) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECalibrationMode.html) and [`ECalibrationMode_Skewed`](../../../doxygen_cpp/namespaceeVision.html#aa4f09c74296350db3ffce101d476f05a) [<sub>.NET</sub>](../../../doxygen_cs/namespaceeVision.html#aadc222f93604cb16a11491a0bf6e52ae) [<sub>Python</sub>](../../../doxygen_python/classeVision_1_1ECalibrationMode.html).

![image](assets/images/easygauge/removalofimagedistortion.webp)
