The Essential Matrix E encodes the geometric relationship between two calibrated camera views. For perfectly corresponding points x1 and x2 (in normalized camera coordinates), the epipolar constraint states:
x2T⋅E⋅x1=0
In practice, due to noise, this product is rarely exactly zero. Your task is to compute this constraint value for given point correspondences.
Given:
Essential matrix E (3×3)
Point x1 in normalized coordinates from camera 1: [x,y,1]
Point x2 in normalized coordinates from camera 2: [x,y,1]
Compute: x2T⋅E⋅x1
Return the scalar result rounded to 6 decimal places.
The essential matrixE describes the geometric relationship between two calibrated cameras observing the same 3D scene point. For corresponding points x1,x2∈R3 in normalized camera coordinates (homogeneous form [x,y,1]T), the epipolar constraint enforces:
x2TEx1=0
This arises from the coplanarity of the baseline (line joining camera centers) and the rays from each camera to the 3D point. E has 5 degrees of freedom (rank-2 matrix with scale ambiguity) and decomposes as E=[t]×R, where R is rotation, t is translation direction, and [t]× is the skew-symmetric matrix.
Normalized coordinates assume intrinsic matrix K=I, so points are in the camera's canonical frame. Noise makes the constraint residual ∣x2TEx1∣ non-zero, used for outlier rejection (e.g., threshold 10−4).
Prerequisites: Matrix multiplication, homogeneous coordinates, basic camera geometry.