user2614596
user2614596

Reputation: 630

How to compute fundamental matrix using a stereo pair?

referring to the question about fundamental matrix,If I had a stereo pair (2 jpeg) and I want to apply Peter Kovesi's or Zisserman's function on order to obtain F, how can I retrieve P1 and P2 ? these two matrices are 3x4 matrices from the two images, but I don't know how they are related... is it right if I take a random 3x4 matrix from grayscale first image and the corrispondent 3x4 matrix in the second image obtained from the first one by using some matching technique such as correlation ? and if it is, do you think that a 3x4 matrix is not detailed enought?

Upvotes: 0

Views: 2111

Answers (3)

Rosa Gronchi
Rosa Gronchi

Reputation: 1911

You should not try to construct F from C0 and C1, you should rather use feature matching between the two images and compute F from the matched key points.

You can then set C0 to be eye and compute C1 from F

Upvotes: 0

Richie
Richie

Reputation: 4432

Well, most of your doubts would be clarified once you go through Camera Calibration and 3D Reconstruction.

Upvotes: 1

Dima
Dima

Reputation: 39389

The Computer Vision System Toolbox includes a function estimateFundamentalMatrix that does what you need. Check out this example of how to estimate the fundamental matrix, and then use it for stereo rectification.

Upvotes: 2

Related Questions