Distortion coefficients for the lens model.
Distortion coefficients are defined in the following way:
Setting any coefficient to 0 implies that it is not used in computation.
If we denote a point without distortion as [x, y, 1] and the corresponding point with distortion as [xd, yd, 1], then the distortion model is defined as follows:
When #NvMediaLdcLensModel is NVMEDIA_2D_LDC_LENS_MODEL_POLYNOMIAL_DISTORTION, the control parameters are k1, k2, k3, k4, k5, k6, p1, and p2.
When NvMediaLensModel is NVMEDIA_2D_LDC_LENS_MODEL_FISHEYE_EQUIDISTANT, NVMEDIA_2D_LDC_LENS_MODEL_FISHEYE_EQUISOLID, NVMEDIA_2D_LDC_LENS_MODEL_FISHEYE_ORTHOGRAPHIC, or NVMEDIA_2D_LDC_LENS_MODEL_FISHEYE_STEREOGRAPHIC, the control parameters are k1, k2, k3, and k4.
Usage considerations
Definition at line 150 of file nvmedia_2d_ldcutil.h.
Data Fields | |
| NvMedia2DLdcLensModel | model |
| Camera model. More... | |
| float | k1 |
| Holds the radial distortion coefficient. More... | |
| float | k2 |
| Holds the radial distortion coefficient. More... | |
| float | k3 |
| Holds the radial distortion coefficient. More... | |
| float | k4 |
| Holds the radial distortion coefficient. More... | |
| float | k5 |
| Holds the radial distortion coefficient. More... | |
| float | k6 |
| Holds the radial distortion coefficient. More... | |
| float | p1 |
| Holds the tangential distortion coefficient. More... | |
| float | p2 |
| Holds the tangential distortion coefficient. More... | |
| float NvMedia2DLdcLensDistortion::k1 |
Holds the radial distortion coefficient.
Definition at line 156 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::k2 |
Holds the radial distortion coefficient.
Definition at line 158 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::k3 |
Holds the radial distortion coefficient.
Definition at line 160 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::k4 |
Holds the radial distortion coefficient.
Definition at line 162 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::k5 |
Holds the radial distortion coefficient.
Definition at line 164 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::k6 |
Holds the radial distortion coefficient.
Definition at line 166 of file nvmedia_2d_ldcutil.h.
| NvMedia2DLdcLensModel NvMedia2DLdcLensDistortion::model |
Camera model.
Definition at line 153 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::p1 |
Holds the tangential distortion coefficient.
Definition at line 168 of file nvmedia_2d_ldcutil.h.
| float NvMedia2DLdcLensDistortion::p2 |
Holds the tangential distortion coefficient.
Definition at line 170 of file nvmedia_2d_ldcutil.h.