Verify if a matrix satisfies the essential matrix constraint.
The essential matrix E encodes the relative pose between two calibrated cameras. It must satisfy:
Determinant constraint: det(E)=0
Singular value constraint: Two singular values are equal, one is zero
For this problem, we check only the determinant constraint. A valid essential matrix is rank-2 (determinant = 0) because it represents a degenerate transformation (all epipolar lines pass through a single point - the epipole).
The 3×3 determinant is computed using the rule of Sarrus or cofactor expansion:
The task is to check whether a given 3×3 matrix E could be an essential matrix by verifying that its determinant is zero (or numerically, “close enough” to zero).
1. Background Knowledge
In epipolar geometry, the essential matrix E relates corresponding points x and x′ in two calibrated camera views via
x′⊤Ex=0.
It encodes the relative rotation and translation direction between the two cameras (pose), assuming camera intrinsics are known and removed.
An essential matrix is a special type of 3×3 matrix with rank 2: its determinant is zero, and its singular values have the pattern σ,\sigma,0. The rank-2 property reflects that all epipolar lines in each image intersect at a single point (the epipole), which corresponds to the camera center of the other view. In this problem, you ignore singular values and only check the determinant constraint:
det(E)=0.
For a 3×3 matrix E=[eij], the determinant can be expanded as: