LensDistortion

Description

LensDistortion structure consists of three radial distortion coefficients: k1, k2, k3 and two tangential distortion coefficients: p1, p2.

struct LensDistortion
	{
		real k1, k2, p1, p2, k3;

		LensDistortion()
			: k1(0), k2(0), p1(0), p2(0), k3(0)
		{}

		LensDistortion(real k1, real k2, real p1, real p2, real k3)
			: k1(k1), k2(k2), p1(p1), p2(p2), k3(k3)
		{}

		bool operator == (const LensDistortion& rhs) const;
		bool operator != (const LensDistortion& rhs) const;
	};

Structure Fields

Type fields and default values (if defined) are described below:

Name Type Description
K1 Real Radial distortion r^2 coefficient
K2 Real Radial distortion r^4 coefficient
P1 Real Tangential distortion coefficient
P2 Real Tangential distortion coefficient
K3 Real Radial distortion r^6 coefficient
K4 Real
K5 Real
K6 Real
S1 Real
S2 Real
S3 Real
S4 Real

See also