```c++
clc;
clear;
close all;
I1 = imread('IMG_0461.png');
I2 = imread('IMG_0462.png');
figure
imshowpair(I1, I2, 'montage');
title('Original Images');
load ('calibrationSession.mat')
I1 = undistortImage(I1, cameraParameters);
I2 = undistortImage(I2, cameraParameters);
figure
imshowpair(I1, I2, 'montage');
title('Undistorted Images');
imagePoints1 = detectMinEigenFeatures(rgb2gray(I1), 'MinQuality', 0.1);
figure
imshow(I1, 'InitialMagnification', 50);
title('150 Strongest Corners from the First Image');
hold on
plot(selectStrongest(imagePoints1, 150));
%%
% Create the point tracker
tracker = vision.PointTracker('MaxBidirectionalError', 1, 'NumPyramidLevels', 5);
imagePoints1 = imagePoints1.Location;
initialize(tracker, imagePoints1, I1);
% Track the points
[imagePoints2, validIdx] = step(tracker, I2);
matchedPoints1 = imagePoints1(validIdx, :);
matchedPoints2 = imagePoints2(validIdx, :);
%%
% 特征点匹配
figure
showMatchedFeatures(I1, I2, matchedPoints1, matchedPoints2);
title('Tracked Features');
%%
% F矩阵估计
[fMatrix, epipolarInliers] = estimateFundamentalMatrix(...
matchedPoints1, matchedPoints2, 'Method', 'MSAC', 'NumTrials', 10000);
错误使用 estimateFundamentalMatrix>checkRuntimeStatus (line 232)
matchedPoints1 and matchedPoints2 do not have enough points. The number of points in each set must be at least 8.
出错 estimateFundamentalMatrix (line 225)
checkRuntimeStatus(statusCode, status);
出错 ganmaoling (line 41)
[fMatrix, epipolarInliers] = estimateFundamentalMatrix(...
就是你提取的特征点不够,八点法至少需要八对点