LensDistortion

Description

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

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

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

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

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

See also

Software lens distortion correction at Wikipedia