Next Article in Journal
MECA-Net: A MultiScale Feature Encoding and Long-Range Context-Aware Network for Road Extraction from Remote Sensing Images
Next Article in Special Issue
An Adaptive Joint Bilateral Interpolation-Based Color Blending Method for Stitched UAV Images
Previous Article in Journal
Haiti Earthquake (Mw 7.2): Magnetospheric–Ionospheric–Lithospheric Coupling during and after the Main Shock on 14 August 2021
Previous Article in Special Issue
Real-Time Detection of Winter Jujubes Based on Improved YOLOX-Nano Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Error Criterion of Fundamental Matrix Based on Principal Component Analysis

1
College of Resources and Environment, Chengdu University of Information Technology, Chengdu 610000, China
2
Sichuan Zhihui Geographic Information Technology Co., Ltd., Chengdu 610000, China
3
College of Earth Science and Technology, Southwest Petroleum University, Chengdu 610000, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2022, 14(21), 5341; https://doi.org/10.3390/rs14215341
Submission received: 10 September 2022 / Revised: 17 October 2022 / Accepted: 22 October 2022 / Published: 25 October 2022
(This article belongs to the Special Issue Computer Vision and Image Processing)

Abstract

:
Estimating the fundamental matrix (FM) using the known corresponding points is a key step for three-dimensional (3D) scene reconstruction, and its uncertainty directly affects camera calibration and point-cloud calculation. The symmetric epipolar distance is the most popular error criterion for estimating FM error, but it depends on the accuracy, number, and distribution of known corresponding points and is biased. This study mainly focuses on the error quantitative criterion of FM itself. First, the calculated FM process is reviewed with the known corresponding points. Matrix differential theory is then used to derive the covariance equation of FMs in detail. Subsequently, the principal component analysis method is followed to construct the scalar function as a novel error criterion to measure FM error. Finally, three experiments with different types of stereo images are performed to verify the rationality of the proposed method. Experiments found that the scalar function had approximately 90% correlation degree with the Manhattan norm, and greater than 80% with the epipolar geometric distance. Consequently, the proposed method is also appropriate for estimating FM error, in which the error ellipse or normal distribution curve is the reasonable error boundary of FM. When the error criterion value of this method falls into a normal distribution curve or an error ellipse, its corresponding FM is considered to have less error and be credible. Otherwise, it may be necessary to recalculate an FM to reconstruct 3D models.

Graphical Abstract

1. Introduction

With the development of stereo observation technology, the fundamental matrix (FM), which describes the geometric relationship between stereo images of the same scene, plays an increasingly important role in the field of three-dimensional (3D) remote sensing. Using FM can eliminate false corresponding points [1,2] and compute the internal and external parameters of uncalibrated images in a camera [3,4,5] and make adjacent image connections in object tracking and 3D scene reconstruction [6,7,8]. Therefore, computing FM using uncalibrated stereo images is a key step in computer vision and 3D image processing.
FM was first introduced by Longuet–Higgins as a generalization of the essential matrix described in uncalibrated images [9]. A large number of FM-estimation algorithms then emerged, which are roughly divided into linear, iterative, and robust methods [10,11]. Among them, the robust method obtains higher estimation accuracy even when corresponding points are stored in false corresponding points (outliers) [12] where the random sample consensus (RANSAC) method for eliminating outliers is widely used for FM estimation [8,13,14]. Subsequently, many scholars have proposed various improved algorithms, e.g., the LMeds method [12], L-1 method [15], MLESAC method [16], MAPSAC method [17], FSASAC method [18], PROSAC and Promeds method [2,19], DKF-RANSAC method [20], R-CNN method [21], and so on.
The effectiveness of improved algorithms depends on FM error criteria. The main error criteria [8], e.g., algebraic distance, symmetric epipolar distance, Sampson distance, and so on, can be used to estimate the FM error. Fathy [22] studied the different FM error criteria, proved that the symmetric epipolar distance is biased, and proposed the Kanatani distance as a new error criterion to remove the outliers. Li [23] proposed the 3D metric distance criterion to estimate the FM quality. However, many recent scholars have retained the epipolar geometric distance as sufficiently accurate to estimate the quality of FM and its improved algorithms [24,25,26,27]. Although the epipolar geometric distance depends on the accuracy, number, and distribution of the known corresponding points on the two uncalibrated images and is biased, it is still the most popular criterion for evaluating improved FM algorithms.
In addition, the covariance matrix can be calculated and derived by analytical or statistical methods to measure FM error [8,28,29]. Hartley pointed out that the Monte Carlo statistical method can be used to calculate the FM covariance matrix [8]. Some scholars have concretely analyzed the covariance of FMs using the eight-point algorithm [30] and the random sample consensus algorithm [31]. Combined with the covariance matrix, the Manhattan distance has been used to measure FM error [32]. There are earlier studies measuring FM error using the covariance matrix.
It is necessary to develop a novel method to estimate FM error. Principal component analysis (PCA) is the most widely used method to reduce the dimensionality of such datasets, increasing interpretability but simultaneously minimizing information loss [33,34]. This paper intends to use the PCA method to reduce the FM dimensionality and construct a scalar function to measure FM error.
Compared with the epipolar geometric distance, the proposed method may be optimized and reduced the influence the accuracy, number, and distribution of the known corresponding points on FM error. Compared with the covariance matrix, the proposed method could use a numerical value to directly measure FM error. This study aims to (1) use FM itself to construct a more direct and less biased error criterion, and (2) determine whether a certain FM calculated with the known corresponding points on stereo images is reasonable and credible.
The remainder of this paper is organized as follows. Section 2 mainly introduces the process of computing FM using two uncalibrated images. Section 3 uses matrix differential theory to derive the covariance matrix of the PCA FM method to construct a scalar function to intuitively estimate FM error. Section 4 uses experiments to verify the rationality of the proposed method. Section 5 and Section 6 are the discussion and the conclusions of this work, respectively.

2. Computing FM

In Figure 1, the camera centers C and C’, a three-space point W, and image points x and x’ lie in a common plane π. A point, x’, in the first image is transferred via the common plane π to a corresponding point x in the second image. In symbols one may write x = Fx′ where F is the fundamental matrix (FM), and the other is x′ = F−1 x.
FM represents the intrinsic projective geometry between two image planes. It is independent of scene structure and only depends on the cameras’ internal and external parameters of calibrated images. However, the FM between two uncalibrated images can usually be computed from image-point correspondences alone. Specifically, FM is defined by the equation
x T F x = 0
for any pair of corresponding points x     x on two uncalibrated images. Given sufficiently many corresponding points x i x i , Equation (1) can be used to compute the unknown matrix F, supposing that the unknown fundamental matrix F in Equation (1), which is a 3 × 3 matrix, is
F = F 11 F 12 F 13 F 21 F 22 F 23 F 31 F 32 F 33
The coefficients of F in Equation (1) are easily written in terms of the known coordinates x and x′. In particular, writing x = x , y , 1 T and x = x , y , 1 T , each corresponding point gives rise to one linear Equation (3) in the unknown F entries.
x x F 11 + x y F 12 + x F 13 + y x F 21 + y y F 22 + y F 23 + x F 31 + y F 32 + F 33 = 0
Supposing that the nine-vector f is made up of the entries of F in row-major order.
f = F 11 , F 12 , F 13 , F 21 , F 22 , F 23 , F 31 , F 32 , F 33 T
Equation (3) can be expressed as a vector inner product
x x , x y , x , y x , y y , y , x , y , 1 f = 0
Given a set of n corresponding points, a set of linear equations can be obtained.
M n × 9 f 9 × 1 = x 1 x 1 x 1 y 1 x 1 y 1 x 1 y 1 y 1 y 1 x 1 y 1 1 x n x n x n y n x n y n x n y n y n y n x n y n 1 f = 0
Equation (6) is a homogeneous set of equations, and matrix M must have ranked at most 8 for a non-zero f to exist. Here, the unknown vector f can only be determined up to a scale. If the data are not exact because of noise in the point coordinates, the rank of M is equal to 9, and the only solution is f = 0. To solve this question, a solution is to turn the set in Equation (6) into an inhomogeneous set of linear equations by imposing the F 33 = 1 condition for some entry of the vector f. In this case, Equation (6) can be converted to
A f ˜ + L = 0 L = 1 ,   1 , , 1 1 × n T
where A has n rows and eight columns, and f ˜ is an eight-element vector.
Such an equation may be solved for f ˜ using the least-squares techniques. The specific calculation is
f ˜ = A T A 1 A T L .
f ˜ and F 33 can then be combined to form f in Equation (9). Here, f is the nine-element vector of FM concretely computed between two uncalibrated images.
f = f ˜ T F 33 T

3. Quantization of FM Error

3.1. Covariance Matrix of FM

The FMs calculated in Equations (8) and (9) involve numerical calculations and matrix-theory operations. Therefore, the following section intends to use matrix differential theory to construct the covariance of FM.

3.1.1. Matrix Differential Theory

Let A F m × n be a matrix variable, and A = a i j m × n , G A = g k l p × q be the matrix function of A. Here, gij (A) is a numerical function of A, and all of them are derivable at A  i = 1 ,   2 , , m ;   j = 1 ,   2 , ,   n ;   k = 1 ,   2 , ,   p ;   l = 1 ,   2 , ,   q . Thus,
G a i j p m × q n = Δ
This is the derivative of G with respect to A, denoted as d G A d A . Among them, = G a 11 G a 12 G a 1 n G a 21 G a 22 G a 2 n G a m 1 G a m 2 G a m n , Δ = g 11 a i j g 12 a i j g 1 q a i j g 21 a i j g 22 a i j g 2 q a i j g p 1 a i j g p 2 a i j g p q a i j , and the symbol ⊗ is the Kronecker product of the matrices A and B of m × n and p × q, respectively, namely
A B = a 11 B a 12 B a 1 n B a 21 B a 22 B a 2 n B a m 1 B a m 2 B a m n B F m p × n q .
Let L be a constant matrix, A F m × n be a matrix variable, and D A F l × l ,   G A F p × q , H A F q × k be matrix functions. The common rules for the differentiation of the above three types of matrices are as follows:
(1)
The derivative of the constant matrix L is a zero matrix, i.e.,
d L d A = 0
(2)
The derivative of the inverse matrix D 1 is
d D 1 d A = I m D 1 d D d A ( I n D 1 )
(3)
The derivative of the matrix function product G A H A is
d G A H A d A = d G d A I n H A + I m G A d H d A

3.1.2. Covariance Matrix Derivation

In Equation (8), L is a constant vector, both A and f ˜ are matrix functions of X = x , y , x , y . Combined with matrix differential theory, the covariance matrix of f ˜ can then be derived.
Let B = A T A , Equation (8) can be expressed by
f ˜ = B 1 A T L .
The derivatives of f ˜ and B are then described by Equation (15).
d f ˜ d X = d ( B 1 ) d X I n A T L I m B 1 d ( A T ) d X I n L d B d X = d A T d X I n A + I m A T d A d X
Substitute Equation (12) into Equation (15) to obtain further expression of the derivatives of f ˜ .
d f ˜ d X = I m B 1 d B d X I n B 1 A T L I m B 1 d A T d X I n L
Moreover, d B d X is inserted into Equation (16) and the following equation is derived:
d f ˜ d X = I m B 1 d A T d X I n A B 1 A T L + I m B 1 A T d A d X I n B 1 A T L I m B 1 d A T d X I n L
Herein, d A T d X and d A d X are calculated by Equation (10).
We know that X is a matrix of one row and four columns from the first paragraph of this section. Thus, m = 1, n = 4 in Equations (12) and (17). In addition, the subscript d is used to denote the differential matrix in this article; Equation (17) can be expressed by
f ˜ d = B 1 A d T I 4 A B 1 A T L + B 1 A T A d I 4 B 1 A T L B 1 A d T I 4 L
Supposing that the variance D X of X is σ x 2 σ x y σ x x σ x y σ y x σ y 2 σ y x σ y y σ x x σ x y σ x 2 σ x y σ y x σ y y σ y x σ y 2 , the variance of f ˜ can then be obtained by Equation (19) using the guide to the expression of uncertainty in measurement method [35].
D f ˜ = f ˜ d D X f ˜ d T
The variance of f can then be calculated following Equation (20).
D f = D f ˜ 0 0 0
Some studies have pointed out [32,36] that the variance of a matrix is the same as the variance of its row-first vectors. Therefore, the covariance matrix D F of FM can also be expressed by the variance D f , i.e.,   D F = D f .

3.2. Scalar Function of FM Error

The 3 × 3 FM is a multivariate of nine elements, which is difficult to comprehend the FM error represented by 9 × 9 covariance matrix. Scalar functions in matrix analysis are often used to describe the one-to-one mapping relationship between matrices and real-valued functions [36]. Therefore, this paper uses the PCA method to reduce FM dimensionality and construct a scalar function to measure FM error.
According to the eigen decomposition principle, the covariance matrix D F can be divided into eigenvalues λ i and eigenvectors u i , where i = 1 ,   2 ,   , 9 . Next, the eigenvalues λ i are arranged in descending order, and the first m eigenvalues are then used to calculate the cumulative contribution rate following Equation (21). Herein, the cumulative contribution rate is the information preservation degree of the original data by the newly generated components, which is usually required to be >85%. When η is greater than 85%, the j value at this time is considered as the m value.
η   m = j = 1 m λ j i = 1 i = 9 λ i ,   m 9
The eigenvectors corresponding to the first m eigenvalues are extracted to form a transformation matrix T T :
T T = u 1 ,   u 2 , ,   u m
The vector Y , calculated by Equation (23), is composed of the most important m principal components of FM, and replaces the original nine-element FM.
Y = Y 1 , Y 2 , , Y m T = T × f
Herein, the Y 1 and Y 2 coordinate axis are the original direction with the largest and the second largest variance of FM, and so on. It is well known for Equation (23) that the correlation coefficients between Y elements are all 0, the scalar function YF can be constructed by the weight α i , where α i is the ratio of λ i to the sum i = 1 i = 9 λ i of the eigenvalues, as is shown in Equation (24).
Y F = α 1 Y 1 + α 2 Y 2 + + α i Y i ,     α i = λ i / i = 1 i = 9 λ i
The FM describes the mapping relationship between two uncalibrated images, and its rank is 2 [8]. Therefore, the scale of the FM value is uncertain. In order to unify the scale of FMs in a pair of stereo images, the min-max normalization method is utilized in the proposed method to convert the scalar function YF to the ratio RF. Supposing that the boundary (the lower bound Y F L and the upper bound Y F U ) of YF can be calculated or counted, the ratio RF can be calculated by Equation (25) to determine the quality of FM. When the ratio RF is in the range 0 ,   1 , its corresponding FM is considered credible. Otherwise, when RF > 1, it is considered as a low-quality FM.
R F = Y F Y F L Y F U Y F L
Alternatively, when the lower bound of Y is known, the FM error direction can be represented by an vector arrow. In Figure 2b, the difference vector Δ Y between a certain Y and the lower bound of Y is the FM error direction in 2D space.

3.3. Review of the Proposed Method

As we know, FM represents a transformation from the coordinate system centered at C’ to the other centered at C (Figure 1). Therefore, the FM F in Equation (1) is the linear transformation function between known corresponding points, and its eigenvectors are FM directions in 2D image space (Figure 3a). The covariance matrix D F can then be derived using matrix differentiation theory, which describes the FM error direction in 9D FM space in Figure 3b; herein, the eigenvector corresponding to the maximum eigenvalue of D F is the maximum variance direction of FM error. The FM can then be converted into Y or YF by the PCA method. Figure 3 is the specific conversion process from nine-element FM to two-element Y in a new 2D space and to one-element YF in a new 1D space.
When the boundary of Y or YF is counted or calculated, the FM error can be represented by the ratio RF and the difference vector Δ Y . The calculation process of FM error in the proposed method is shown in Algorithm 1.
Algorithm 1. The calculated steps of FM error.
  • The FM can be calculated with known corresponding points on two uncalibrated images.
  • The covariance matrix of FM can be calculated by Equation (20), and its eigenvectors can then be obtained by eigendecomposition.
  • The m-element vector Y can be calculated by Equation (23). Here, m < 9.
  • The scalar function YF can be calculated by Equation (24), which represents the value of the maximum variance direction of FM.
  • When the boundary of Y or YF is known, the error value and the error direction of FM can then be measured by calculating the ratio RF and the difference vector ΔY, respectively.
When the specific ratio R F is within the range of [0, 1], its corresponding FM is considered reasonable and credible. Conversely, it may be necessary to recalculate an FM to evaluate the intrinsic projective geometry relationship between two uncalibrated images.

4. Experiment

A large number of experiments found that the cumulative contribution rate of the first two eigenvalues for FM covariance matrix, which is calculated by Equation (23), accounted for > 85%. Therefore, the first two principal components Y1 and Y2 are used to form the vector Y = (Y1, Y2) and to construct the scalar function YF. Therefore, the Y and YF could be calculated mainly by Equation (26) in the following experiments.
Y F = λ 1 Y 1 + λ 2 Y 2 Y 1 = u 1 f Y 2 = u 2 f
Herein,   f is the nine-vector of FM, λ 1 and λ 2 are the largest and sublargest eigenvalues decomposed by the covariance matrix DF. Additionally, u 1 and u 2 are eigenvectors corresponding to the eigenvalues λ 1 and λ 2 , respectively.

4.1. Data Source

Three groups of stereo images in this work were selected with different image acquisition methods for testing, and their corresponding points were extracted using SURF and the nearest-neighbor search algorithms. The test1 (Figure 4(a1,b1)) was with normal close-digital stereo imagery of the Tsinghua School, Beijing, China, which was published by the Institute of Automation of the Chinese Academy of Sciences, Beijing, China. In addition, 835 pairs of corresponding points are shown in Figure 4(c1) with + symbols, of which about 250 pairs are outliers. The test2 (Figure 4(a2,b2)) was actual digital drone images, which were taken by measuring using a SONY ILCE-6000 digital camera at an altitude of 300 m. Consequently, 1962 pairs are shown in Figure 4(c2), of which about 550 pairs are outliers. The test3 (Figure 4(a3,b3)) are actual digital aerial images, which were taken using the digital aerial UltraCam camera at an altitude of 3600 m. Figure 4(c3) shows 3656 pairs and 150 pairs are outliers.

4.2. Correctness of Scalar Function

It is often desirable to use an element or scalar function to refer to multiple variables, in which the norm is an important method to study least-squares solutions and matrix perturbations [36]. There are many types of norms, e.g., the Euclidean norm, row addition norm, column addition norm, spectral norm, and the Mahalanobis norm, in which Euclidean and Mahalanobis norms are metric functions that measure matrix similarity. Previous research has pointed out that the Manhattan distance in matrix theory could be used to evaluate FM error [32] and was expressed as
F D f = tr F T × D f × F
Therefore, this paper uses the Mahalanobis norm F D f as the truth value to verify the correctness of the scalar function YF.

4.2.1. Experiment Process

The Mahalanobis norm computed by Equation (27) can be used as the truth value to verify the derived value in Equation (26). Figure 5 is a verification flowchart and its verification process is as follows:
1.
The RANSAC algorithm is run n times to obtain n Ri sets of corresponding points after eliminating outliers, with which the covariance matrix DFi can then be calculated by Equation (20), where i = 1 ,   2 ,   , n .
2.
The Mahalanobis norm F D f can be calculated following Equation (27), which is considered the truth value of FM error.
3.
The scalar function YF can also be calculated using Equation (26), which is a measured value of FM error.
4.
The correlation of the truth and measured errors can be calculated. When the correlation coefficient is large enough, the scalar function derived in this article is considered correct.

4.2.2. Experiment Result

The RANSAC algorithm was run 100 times to obtain 100 Ri sets using known corresponding points in Figure 4(c1,c2,c3), and the covariance matrix DFi then was calculated by Equation (20), here,   i = 1 ,   2 ,   , 100 . The scalar function YF and Mahalanobis norm F D f of FM were then calculated following Equations (26) and (27), and their distribution (the first and second) and correlation (the third) scattergrams are shown in Figure 6.
A linear relationship exists between the scalar function YF and the Mahalanobis norm F D f . By linear fitting, the correlation coefficients are 0.951, 0.935, and 0.933 in tests 1, 2, and 3, respectively. Therefore, YF and F D f have great correlation, >90% in all three tests. The Mahalanobis norm as the truth error can represent the difference of FMs, thus, the scalar function YF derived in Equation (26) can also be utilized in this study.

4.3. Comparison with the Existing Method

In the past few years, although the 3D metric distance was proposed as a new error criterion to estimate the FM quality, it also has a similar performance in accuracy compared to the symmetric epipolar distance [23]. Therefore, the symmetric epipolar distance, as the most popular error criterion, is chosen to verify the proposed method. Specifically, the symmetric epipolar distance Ed is the squared distance between a point’s epipolar line and the corresponding point in the other image (computed for both points of the match), averaged over all N corresponding points.
E d = 1 N i = 1 N d x i , F x i 2 + d x i , F T x i 2
where d x i , F T x i is the distance (in pixels) between a point x i and a line F T x i .

4.3.1. Experiment Process

The RANSAC algorithm can be run multiple times to obtain many FMs. YF and E d could then be calculated with Equations (26) and (28), the correlation of which could also be fitted by the linear regression method. The comparison flowchart (Figure 7) of YF and E d is designed as follows:
1.
The RANSAC algorithm is run n times to obtain n Ri sets of corresponding points after eliminating errors, with which the covariance matrix DFi can then be calculated by Equation (20), where i = 1 ,   2 ,   , n .
2.
The symmetric epipolar distance E d can be calculated following Equation (28), which is considered as the compared value of FM error.
3.
The scalar function YF can be calculated using Equation (26), which is a measured value of FM error.
4.
After the correlation of Steps 2 and 3 is calculated, the difference between the proposed method and the existing method can be analyzed.

4.3.2. Experiment Result

The RANSAC algorithm was run 100 times to obtain 100 FMs using known corresponding points in Figure 4(c1,c2,c3). Following this, 100 YF and 100 E d values were calculated by Equations (26) and (28), respectively. Figure 8 shows the distribution and correlation scattergrams of YF and E d .
In this experiment, three groups of scattergrams in Figure 8(a1,a2,a3) were calculated with known corresponding points in Figure 4(c1,c2,c3), and in Figure 8(b1,b2,b3) with the corresponding points after removing the false points. Comparing Figure 8(a1,a2,a3) with Figure 8(b1,b2,b3), it is found that the linear distribution in Figure 8 (b1,b2,b3) is a part in Figure 8(a1,a2,a3), as the rectangle in Figure 8(a1,a2,a3) points from Figure 8(b1,b2,b3). By linear fitting, the correlation coefficients between YF and Ed are 0.274, 0.126, and 0.861 in Figure 8(a1,a2,a3), and 0.842, 0.839, and 0.946 in Figure 8(b1,b2,b3). Relative to Figure 8(b1,b2,b3), the correlation coefficients of Figure 8(a1,a2,a3) are all lower, especially those of Figure 8(a1) and Figure 8(a2). The specific reason is as follows: There are about 250 pairs in test1, about 550 pairs in test2, and about 150 pairs of false matches in test3, and they, respectively, account for about 30%, 28%, and 4% of all corresponding points in Figure 4(c1,c2,c3). Tests 1 and 2 in Figure 8(a1,a2) contain many false corresponding points, which makes it difficult to eliminate all the false points using the RANSAC algorithm, so that the R set in Figure 7 contains several false corresponding points, calculating an outlier of Ed, and resulting in less correlation between YF and Ed.
Therefore, false corresponding points affect the linear relationship of YF and Ed. When there are many false points in an R set, the Ed calculated by Equation (28) may be wrong or a large error, resulting in the incorrect estimation of FM. However, the covariance   D F of FM in this article is calculated with the least-squares principle, which ignores the influence of the false corresponding points on the whole. Therefore, compared with the symmetric epipolar distance, the proposed method relies less on the accuracy, number, and distribution of known corresponding points, and is more robust and more reliable for evaluating FM error.

4.4. Application of This Method

With this proposed method, the FM and its covariance matrix can be calculated with known corresponding points on uncalibrated stereo images, and the vector Y and scalar function YF can be calculated by Equation (26). When the boundary of YF or Y can be counted or calculated for a group of stereo images, the ratio R F and the vector arrow Δ Y can be calculated to estimate the error value and the error direction of a certain FM in this group of stereo images.
Figure 9 shows the statistical boundaries (broken lines) of YF and Y based on three groups of stereo images in Figure 4. In this experiment, the RANSAC algorithm was run 100 times to obtain 100 Y and 100 YF values, most of which are clustered together and form the normal distribution and the error ellipse. For a certain FM estimated with some corresponding points in Figure 4(c1,c2,c3), the Y and YF can be calculated.
With the statistical boundaries (broken lines) of YF and Y in Figure 9, the ratio R F and the vector arrow Δ Y can then be calculated. When the YF or Y falls into the normal distribution curve or inside the error ellipse, its ratio R F is less than 1 and its vector arrow is inside the error ellipse, as shown in the red dot A. This means that the FM corresponding to the red dot A falls into the normal distribution and the error ellipse, and is considered to have less error and be more credible. On the contrary, the red dot B falls outside the normal distribution and its vector arrow goes beyond the error ellipse. We can say that the FM corresponding to the red dot B may be low quality, and it is necessary to recalculate an FM to evaluate the intrinsic projective geometry relationship between two uncalibrated images.

5. Discussion

FM represents the intrinsic projective geometry between two image planes, and is a multivariate matrix of nine elements, in which is difficult to measure the FM error represented by 9 × 9 covariance matrix. The PCA is the most widely used method to reduce the dimensionality of such datasets. Therefore, this study used the PCA method to reduce FM dimensionality and constructed the scalar function YF to measure FM error.
In matrix theory, the Manhattan distance as a standard can be used to measure the difference of FMs. This study used the Mahalanobis norm F D f as the truth value to verify the correctness of the scalar function YF. The experiment in Section 4.2 found that there was a linear relationship between YF and F D f , and there was a high linear correlation in three groups of tests. The Mahalanobis norm, as the truth value, can represent the difference of FMs, the scalar function YF derived in Equation (26) can also be used to measure the FM error.
The symmetric epipolar distance is the most popular error criterion. This study analyzed the relationship between the scalar function YF and the symmetric epipolar distance Ed in Section 4.3. Compared with tests 1 and 2, test 3 had a higher linear relationship in Figure 8. The reason may be that there are many false corresponding points in tests 1 and 2, the Ed calculated with these corresponding points may be wrong or involve a large error, resulting in the incorrect estimation of FM. Therefore, false corresponding points affect Ed and the linear correlation coefficient of YF and Ed. Compared with Ed, the proposed method relies less on the accuracy, location, and number of known corresponding points, and is more robust and more reliable to evaluate FM error.
It is worth noting that both the Mahalanobis norm F D f and the symmetric epipolar distance Ed are error criteria greater than 0. When F D f or Ed is larger than 0, it means the FM error is larger. However, the experiments in this article found that the ranges of YF calculated in the three tests were different in Figure 6 and Figure 8, in which some YF values were less than 0. Although YF is linear with respect to F D f or Ed, the minimum value of YF is uncertain. Therefore, it is difficult to measure the FM error for a specific YF. In order to solve this problem, the min-max normalization method is utilized to transform the scalar function YF to the ratio RF. In Section 4.4, the boundary of YF or Y can be counted using the different corresponding points of the same stereo images multiple times. As is shown in Figure 9, the boundary of YF is a normally distributed curve in 1D space, and the boundary of Y is an error ellipse in 2D space. When the YF or Y corresponding to a specific FM falls into a normal distribution curve or inside an error ellipse, the ratio RF is less than 1, and the FM corresponds to the YF, Y and RF are then considered to have less error and be credible. Otherwise, the FM corresponding to the ratio RF > 1 may be low quality.
In summary, three groups of experiments verified the rationality of the proposed method and obtained results as follows: (1) The proposed method is highly fitted to the Mahalanobis norm of FM and can be used to replace the nine-element FM. (2) Compared with the symmetric epipolar distance, the proposed method relies less on the accuracy, location, and number of known corresponding points, and is more robust and more reliable in evaluating FM error. (3) Through statistical analysis, it was found that the FM error is normally distributed and forms an error ellipse. When counted or calculated, the boundary of YF or Y, the ratio RF, and the vector Δ Y can be calculated to estimate the error value and error direction of FM. When the ratio R F is within [0, 1], the FM corresponding to R F is considered reasonable. Conversely, it may be a low-quality FM.

6. Conclusions

This study accomplished two main objectives: one was to derive the covariance matrix by matrix differential theory and covariance-propagation theory, and the second was to use the PCA method to construct the scalar function to estimate FM error. Specifically, the FM error in this paper was estimated as follows:
  • Compute the covariance matrix using the known corresponding points extracted from two uncalibrated images.
  • Following the PCA method, decompose the covariance matrix and then construct the vector Y and the scalar function YF.
  • Count or calculate the boundary of Y and YF, and then calculate the ratio RF to estimate FM error. Here, the FM corresponding to R F 0 ,     1 is considered reasonable. When RF > 1, it is considered a low-quality FM.
The main significance of the proposed method is to determine whether a specific FM falls into a normal distribution or inside an error ellipse by calculating the ratio RF. When the RF is in the range [0, 1], FM is then considered to be inside a normal distribution or an error ellipse, and it is credible to describe the intrinsic projective geometry between the two uncalibrated images. Conversely, it may be necessary to recalculate an FM for computing camera parameters, making adjacent image connections, and reconstructing 3D models.
The boundary of the error criterion in this paper was obtained by statistical methods in experimental application. They will be studied and calculated by theoretical methods in the future.

Author Contributions

Conceptualization, Y.B. and S.F.; methodology, Y.B.; software, Y.Z. (Ye Zhou); validation, Y.B., X.W. and Y.Z. (Yan Zhen); formal analysis, Y.Z. (Yan Zhen) and Y.C.; investigation, Y.B.; resources, Y.Z. (Ye Zhou); data curation, X.W.; writing—original draft preparation, Y.B.; writing—review and editing, Y.B., S.F. and Y.C.; visualization, Y.Z. (Ye Zhou); supervision, S.F. and X.W.; project administration, Y.C.; funding acquisition, Y.B., S.F. and Y.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant numbers 41601422; the Key Research and Development Projects of Sichuan Science and Technology Department, grant numbers 2021YJ0384 and 2020YFG0144.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rousseeuw, P.; Leroy, A. Robust Regression and Outlier Detection; John Wiley & Sons: New York, NY, USA, 1987; pp. 216–245. [Google Scholar]
  2. Fischler, M.A.; Bolles, R.C. Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. In Readings in Computer Vision; Morgan Kaufmann: Burlington, MA, USA, 1987; pp. 726–740. [Google Scholar] [CrossRef]
  3. Faugeras, O.D.; Luong, Q.T.; Maybank, S.J. Camera self-calibration: Theory and experiments. Proc. ECCV 1992, 588, 321–334. [Google Scholar] [CrossRef]
  4. Hartley, R.I.; Gupta, R.K.; Chang, T. Stereo from uncalibrated cameras. In Proceedings of the 1992 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Champaign, IL, USA, 15–18 July 1992. [Google Scholar] [CrossRef]
  5. Hartley, R.I. Estimation of relative camera positions for uncalibrated cameras. In Proceedings of the Second European Conference on Computer Vision, Santa Margherita Ligure, Italy, 19–22 May 1992; pp. 579–587. [Google Scholar] [CrossRef] [Green Version]
  6. Longuet-Higgins, H.L. A computer algorithm for reconstructing a scene from two projections. In Readings in Computer Vision; Morgan Kaufmann: San Franciso, CA, USA, 1987; pp. 61–62. [Google Scholar] [CrossRef]
  7. Hartley, R.I. Euclidean reconstruction from uncalibrated views. In Proceedings of the Second Joint European—US Workshop on Applications of Invariance in Computer Vision, Azores, Portugal, 9–14 October 1993; Volume 825, pp. 237–256. [Google Scholar] [CrossRef] [Green Version]
  8. Hartley, R.; Zisserman, A.; Faugeras, O. Multiple View Geometry in Computer Vision, 2nd ed.; Cambridge University Press: Cambridge, UK, 2003; pp. 90–99, 178–190, 195–202. [Google Scholar]
  9. Tian, Z.; Li, B.C. Optimize preview model parameters evaluation of RANSAC. Appl. Mech. Mater. 2012, 687, 3984–3987. [Google Scholar] [CrossRef]
  10. Torr, P.; Murray, D.W. The development and comparison of robust methods for estimating the fundamental matrix. Int. J. Comput. Vis. 1997, 24, 271–300. [Google Scholar] [CrossRef]
  11. Armangué, X.; Salvi, J. Overall view regarding fundamental matrix estimation. Image Vis. Comput. 2003, 21, 205–220. [Google Scholar] [CrossRef]
  12. Yan, K.; Liu, E.H.; Zhao, R.J. A fast and robust method for fundamental matrix estimation. Opt. Precis. Eng. 2018, 26, 1–10. [Google Scholar] [CrossRef]
  13. Chen, F.X.; Wang, R.S. Fast RANSAC with preview model parameters evaluation. J. Softw. 2005, 16, 1431–1437. [Google Scholar] [CrossRef]
  14. Wang, G.; Sun, X.L.; Shang, Y.; Wang, Z.; Shi, Z.C.; Yu, Q.F. Two-view geometry estimation using RANSAC with locality preserving constraint. IEEE Access 2020, 8, 726–7279. [Google Scholar] [CrossRef]
  15. Yang, M.; Liu, Y.; You, Z. Estimating the fundamental matrix based on least absolute deviation. Neurocomputing 2011, 74, 3638–3645. [Google Scholar] [CrossRef]
  16. Torr, P.; Zisserman, A. MLESAC: A new robust estimator with application to estimating image geometry. Comput. Vis. Image Underst. 2000, 78, 138–156. [Google Scholar] [CrossRef] [Green Version]
  17. Torr, P.H.S. Bayesian model estimation and selection for epipolar geometry and generic manifold fitting. Int. J. Comput. Vis. 2002, 50, 35–61. [Google Scholar] [CrossRef]
  18. Wei, R.Y.; Wang, J.F. FSASAC: Random sample consensus based on data filter and simulated annealing. IEEE Access 2021, 9, 164935–164948. [Google Scholar] [CrossRef]
  19. Carro, A.I.; Morros, J.R. Promeds: An adaptive robust fundamental matrix estimation approach. In Proceedings of the 2012 3DTV-Conference: The True Vision—Capture, Transmission and Display of 3D Video (3DTV-CON), Zurich, Switzerland, 15–17 October 2012. [Google Scholar] [CrossRef]
  20. Vinod Kumar, S.; Arnab, M. Random sample consensus in decentralized kalman filter. Eur. J. Control. 2022, 65, 100617. [Google Scholar] [CrossRef]
  21. Shao, C.; Zhang, C.; Fang, Z.; Yang, G. A deep learning-based semantic filter for RANSAC-based fundamental matrix calculation and the ORB-SLAM system. IEEE Access 2019, 8, 3212–3223. [Google Scholar] [CrossRef]
  22. Fathy, M.E.; Hussein, A.S.; Tolba, M.F. Fundamental matrix estimation: A study of error criteria. Pattern Recognit. Lett. 2011, 32, 383–391. [Google Scholar] [CrossRef]
  23. Li, X.; Yuan, X. Fundamental matrix computing based on 3D metrical distance. Algorithms 2021, 14, 89. [Google Scholar] [CrossRef]
  24. Zhou, F.; Zhong, C.; Zheng, Q. Method for fundamental matrix estimation combined with feature lines. Neurocomputing 2015, 160, 300–307. [Google Scholar] [CrossRef]
  25. Yan, K.; Zhao, R.J.; Liu, E.H.; Ma, Y.B. A robust fundamental matrix estimation method based on epipolar geometric error criterion. IEEE Access 2019, 7, 147523–147533. [Google Scholar] [CrossRef]
  26. Liang, W.; Ju, G. A Global fundamental matrix estimation method of planar motion based on inlier updating. Sensors 2022, 22, 4624. [Google Scholar] [CrossRef]
  27. Yang, R.; Zhang, J.; Li, B. Estimating the fundamental matrix based on the end-to-end convolutional network. Appl. Intell. 2022, 52, 15517–15528. [Google Scholar] [CrossRef]
  28. Zhang, Z. Determining the epipolar geometry and its uncertainty: A review. Int. J. Comput. Vis. 1998, 27, 161–198. [Google Scholar] [CrossRef]
  29. Faugeras, O.; Zhang, Z.Y.; Zeller, C.; Csurka, G. Characterizing the uncertainty of the fundamental matrix. Comput. Vis. Image Underst. 2006, 68, 18–36. [Google Scholar] [CrossRef] [Green Version]
  30. Sur, F.; Noury, N.; Berger, M.O. Computing the uncertainty of the 8 point algorithm for fundamental matrix estimation. In Proceedings of the 19th British Machine Vision Conference—BMVC, Leeds, UK, 1–4 September 2008. [Google Scholar] [CrossRef] [Green Version]
  31. Raguram, R.; Frahm, J.M.; Pollefeys, M. Exploiting uncertainty in random sample consensus. In Proceedings of the 2009 IEEE 12th International Conference on Computer Vision, Kyoto, Japan, 29 September–2 October 2009; pp. 2074–2081. [Google Scholar] [CrossRef] [Green Version]
  32. Bian, Y.X. Research on the Uncertainty of 3D Point Cloud Reconstruction Based on Image Sequences. Ph.D. Thesis, Nanjing Normal University, Nanjing, China, 2015. [Google Scholar]
  33. Jolliffe, I.T.; Cadima, J. Principal component analysis: A review and recent developments. Philos. Trans. A Math. Phys. Eng. 2016, 374, 20150202. [Google Scholar] [CrossRef] [PubMed]
  34. Grtler, J.; Spinner, T.; Streeb, D. Uncertainty-aware principal component analysis. IEEE Trans. Vis. Comput. Graph. 2020, 26, 822–831. [Google Scholar] [CrossRef] [PubMed]
  35. Shi, C.Y. Guide to the Expression of Uncertainty in Measurement; China Metrology Publishing House: Beijing, China, 2000; pp. 9–10. [Google Scholar]
  36. Zhang, X.D. Matrix Analysis and Applications; Qinghua University Press: Beijing, China, 2004; pp. 43–53. [Google Scholar]
Figure 1. Point-correspondence geometry.
Figure 1. Point-correspondence geometry.
Remotesensing 14 05341 g001
Figure 2. Error value and error direction of FM. (a) describes the FM error value in 1D space, and (b) describes the FM error direction in 2D space. The red dot is the Y or YF value corresponding to a specific FM, and the yellow triangle is the statistically or computed lowest value of Y or YF.
Figure 2. Error value and error direction of FM. (a) describes the FM error value in 1D space, and (b) describes the FM error direction in 2D space. The red dot is the Y or YF value corresponding to a specific FM, and the yellow triangle is the statistically or computed lowest value of Y or YF.
Remotesensing 14 05341 g002
Figure 3. Conversion process of FM. (a) is the FM directions in 2D image space, (b) describes the FM error direction in 9D FM space, (c,d) represent the distribution of FMs in a new 2D space and 1D space, respectively.
Figure 3. Conversion process of FM. (a) is the FM directions in 2D image space, (b) describes the FM error direction in 9D FM space, (c,d) represent the distribution of FMs in a new 2D space and 1D space, respectively.
Remotesensing 14 05341 g003
Figure 4. Data source. (a1,a2,a3) are the left images, (b1,b2,b3) are the right images, and (c1,c2,c3) are the stitched images of the left and right images, in which two “+” symbols connected by a line are a pair of corresponding points.
Figure 4. Data source. (a1,a2,a3) are the left images, (b1,b2,b3) are the right images, and (c1,c2,c3) are the stitched images of the left and right images, in which two “+” symbols connected by a line are a pair of corresponding points.
Remotesensing 14 05341 g004
Figure 5. Verification flowchart of the proposed method.
Figure 5. Verification flowchart of the proposed method.
Remotesensing 14 05341 g005
Figure 6. Distribution results of YF and F D f . There are the results of test 1, test 2, and test 3 in (a), (b) and (c), respectively.
Figure 6. Distribution results of YF and F D f . There are the results of test 1, test 2, and test 3 in (a), (b) and (c), respectively.
Remotesensing 14 05341 g006
Figure 7. Comparative flowchart with the existing method.
Figure 7. Comparative flowchart with the existing method.
Remotesensing 14 05341 g007
Figure 8. Distribution results of YF and Ed. There are the results of test1, test2, and test3 in (a1,b1), (a2,b2) and (a3,b3), respectively.
Figure 8. Distribution results of YF and Ed. There are the results of test1, test2, and test3 in (a1,b1), (a2,b2) and (a3,b3), respectively.
Remotesensing 14 05341 g008aRemotesensing 14 05341 g008b
Figure 9. Statistical results. (a1,a2,a3) and (b1,b2,b3) are three groups of statistical histograms of YF and scatter plots of Y, which are calculated and counted from corresponding points removing false points in Figure 4(c1,c2,c3), respectively. In addition, the yellow triangles are the lower-bound points of the reasonable boundaries of YF and Y, respectively, and the red dots A and B are two YF or Y values corresponding to two different FMs.
Figure 9. Statistical results. (a1,a2,a3) and (b1,b2,b3) are three groups of statistical histograms of YF and scatter plots of Y, which are calculated and counted from corresponding points removing false points in Figure 4(c1,c2,c3), respectively. In addition, the yellow triangles are the lower-bound points of the reasonable boundaries of YF and Y, respectively, and the red dots A and B are two YF or Y values corresponding to two different FMs.
Remotesensing 14 05341 g009aRemotesensing 14 05341 g009b
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bian, Y.; Fang, S.; Zhou, Y.; Wu, X.; Zhen, Y.; Chu, Y. A Novel Error Criterion of Fundamental Matrix Based on Principal Component Analysis. Remote Sens. 2022, 14, 5341. https://doi.org/10.3390/rs14215341

AMA Style

Bian Y, Fang S, Zhou Y, Wu X, Zhen Y, Chu Y. A Novel Error Criterion of Fundamental Matrix Based on Principal Component Analysis. Remote Sensing. 2022; 14(21):5341. https://doi.org/10.3390/rs14215341

Chicago/Turabian Style

Bian, Yuxia, Shuhong Fang, Ye Zhou, Xiaojuan Wu, Yan Zhen, and Yongbin Chu. 2022. "A Novel Error Criterion of Fundamental Matrix Based on Principal Component Analysis" Remote Sensing 14, no. 21: 5341. https://doi.org/10.3390/rs14215341

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop