[Music] we will continue our discussion on a people at geometry and we are discussing the definition we discussed about fundamental matrix and how this matrix is related with the parameters of projection matrices first thing is that a fundamental matrix is a matrix if we multiply any image point it will give you their corresponding a people are line in the second image image plane and this can be this can be computed from the camera parameters itself and those relations are shown here which we discussed earlier also it could be in various forms here you can consider
that you have the you have the reference camera is in the form of say standard canonical representation say I 0 and the corresponding you know the other camera this is given in this representation with respect to this we can compute the fundamental matrix from this configuration you can compute it by this expression so this is one kind of no relationship that we discussed and we also observed that a fundamental matrix can be simplified into a form of an essential matrix if I if I if I use the calibrated camera which means I know the calibration
matrices and then I can make necessary necessary transformations on the image coordinates so that effectively calibration matrix becomes an identity matrix so in that form a its fundamental matrix its reduces to this particular structure when you were defining the camera mattresses in this form so P is given as i0 and P prime is given as rotation rotation matrix and the corresponding translation matrix translation of the origin so by given they are given in this form so they the fundamental matrix can be obtained by performing this operation so it's a cross product of translation vector with
respect to the rotation matrix so this is a relationship and we have also defined how this notation how you can confer convert a cross product operations into this matrix multiplication from and then this fundamental matrix is called essential matrix and we denote in this particular structure by another notation e in our discussion so this is what we discussed in the last lecture now I will consider solving a problem just you know to illustrate how these concepts could be used to retrieve various information so take this problem here in this case it's a problem of simply
computing the fundamental matrix so as I was no so you look at the problem once again that reference matrix P is given as a 0 which is in the canonical form itself whereas P prime it is in the non canonical form representation that means it is not calibrated its calibration parameters are not known to us rather I know that all the elements of the projection matrix that is what is P Prime so with this configuration we would like to compute the fundamental matrix of the system so let us see how this composition we can do
so this is given that P prime as I mentioned P is so given here so here we will take this 3 cross 3 sub matrix which is denoted here n and then we will also consider the column vector which is denoted the small M so these are the notations we have used earlier so we represent this P Prime into this form into this notation with these sub matrices then we will apply the corresponding no relations between m and M which will are positions involving a man named which will give us fundamental matrix so we first
will represent to the scheme symmetric matrix we will get the scheme symmetric matrix which is performing the equivalent cross product operation so in the vectors so so from 4 8 1 we can get this skew symmetric matrix and then fundamental matrix is given by this computation so if I multiply this matrix with M so this M M cross let me call this matrix as simply M cross matrix so this M cross matrix if I multiply with capital m capital M then we will get a 3 cross 3 matrix so this is what is the fundamental
matrix so as you understand if you know the camera matrices in these particular forms then it is very easy to compute the fundamental matrix we will also discuss that how a general forms of gamma matrices can be also used for deriving this fundamental matrix one thing you should note one of the property of the fundamental matrix that is there which you know which I need to discuss here that in a fundamental matrix if I perform as I mentioned if I if I convert consider any image point X and if I multiply with F then you
get the corresponding if people align in the right plane the right image plane and what is an AP poll airline epipolar line is a line found by the by the AP poll in this configuration so you have this configuration so this is Center C this is Center C Prime and this is the baseline so these are the people's this is considered these are the intersecting points so this is e prime e and a point X and it's corresponding image point say say this is X this is X Prime so people a line is formed by
these two two points one is the AP polls in the image plane right image plane with or we call it right a people or e Prime and the image point now you just consider this image point incidentally which is the left AP poll or II now it's corresponding image point itself is e prime then what would be a people online how do we form this a polar line so as we have seen earlier also that actually this is the case of singularity you cannot form a line but just by connecting the same at the same
point itself you cannot define it on a line just using a single point so that is why this mathematically this is your geometric construction mitrik constraint that we understand but mathematically this constraint is expressed in this form if I multiply this fundamental matrix with this AP poll in the image point what I will get it is 0 that means a 0 column vector so this is how this constraint is expressed and which means that this fundamental matrix has a 0 vector and from the linear algebra it says that that means this fundamental matrix is a
rank deficient fundamental matrix so if I take the determinant of this matrix you should get zero so that you can also check with this result now we will proceed with the next example and in this case we will consider a more general scenario of projection matrices where no we would like to compute fundamental matrix ap polar lines and also you know I think you can compute also the for a people align you need to compute a peoples definitely and there are interesting concepts of end image points of P prime so so let us consider let
us discuss this solution so if we would like to compute the fundamental matrix that is between P and P prime so P once again is repeat is no expressed as in this form mp4 similarly this matrix is M Prime so first we need to compute the the homography at infinity what we discussed earlier that means we need to find out the homography between the corresponding points between a point and the corresponding point of the same point which is lying at plane at infinity so let us discuss this issue so we have a same point suppose
this is plane at infinity now for this sake convenience I am just showing it in the diagram as you understand plane at infinity is not realizable physically but mathematically there exist a plane and how a point in a plane at infinity will be represented you consider any particular direction and then you use the scale value scale factor 0 so this is how the point of plane at infinity you know represented so this is my same point say X and in a studio setup I would be considering the corresponding images of this point so say this
is image point X and and this is so this is my camera Center so this image is X Prime and we are considering homograph e between this two and which will be expressing as H infinity so how they are related with this let us see so X can be written as P now I can write it as P D u 0 which is equal to M D and X prime can be written as P prime D 0 which is equal to m prime D so X Prime I can write it as M prime M inverse
M D you know that M inverse M makes an identity matrix so this will give you this so this can be considered as a 3 cross 3 matrix H infinity and M D is X so you find there is a hog rafi between these corresponding points so this is what we will be using here in this case because we know that fundamental matrix this can be consider if I know the right people here see if the right a people is e prime then fundamental matrix is given by e prime cross H infinity that is what
we discussed previously also and then we have used the expansion of H infinity to get all those forms but we'll be using simply we can compute H infinity so in this problem what we'll need to do first will be computing u prime so a prime is nothing but image of the camera center of the first camera so we have to compute the first camera and then take the image which will give me Prime and then we need to compute H infinity from a my name prime by performing this operation which is M prime into m
inverse and then by performing this we can compute the fundamental matrix so let us carry on this computation as we discussed so we have computed the camera centered in this form so we need to perform the M inverse operation and then now you can compute the camera center C tilde which is given in this form in the projective space and then compute the write a peephole as P prime C which is given in this form this is the image of the camera center and which you which is giving you the right a people and this
is right a people so now you have to perform the eeprom cross you have to progress and you should compute the home ography at infinity as we discussed which is M prime M inverse and if I perform those operations will get this homography matrix so fundamental matrix is e prime cross H infinity and which will give you this particular four so he prank Ross is this one so if you if you find out this is a prime I can get the prime cross I can represent so I'm ignoring the scale factor here scale value is
not important here and then you get the answer as in this form so you note that fundamental matrix is also an element of a projective space so if I scale these values you will also it will also denote the same fundamental matrix so the next no problem is that if I if I give you an image point which is given as say 1520 in the reference camera so in this case suppose this point is denoted by the coordinates a 15 20 then I need to compute the AP polar line which means if I join this
so I need to compute the AP polar line so this line so what I need to compute I have to compute the corresponding no se so this is a there is a thing what I need to do so what I will do I will I will I will multiply this point with F then I will get this a polar line that is the relation that is how fundamental matrix is related we think with a image point to its a people align so this is what we need to so it is just showing that now all
the points along these rays which is lying here and also as we have discussed that there will be homography between these points but finally the point which is lying at infinity that is the limiting point so you see that is that that concept of vanishing point is also here in this kind of a people a line constraint no other image point will exist it will not there there won't be any intersection beyond this point so you have any people align you have a very finite representation of a people align at one end there would be
right a people and the other end there will be the image point corresponding to the home ography of plane at infinity or corresponding point of the same point which is lying at the plane at infinity so this is what we sometimes represent in this notation also and this is this diagram is explaining this part so this is how the AP polar line is computed I multiplied the the the point 15:20 the representation is 1521 in the homogeneous coordinate space and if I multiply it with F so I will get the people aligned in this form
which I can again reduce in into this form by taking the third dimension scale equal to one so which means the equation of this line will be minus two point five three x plus two point four two y plus one equal to 0 and to get the X infinity X infinity because in this case problem also we wanted to know the end points of the epipolar line we can compute or you have already computed tomography at infinity simply you can multiply at this point and applying this we can get this is the point so we
know a people are a people of in the right image plane and also the corresponding end point of that a people are lying in this way so now let me summarize the properties of fundamental matrix so we have discussed and we have also shown how you can compute fundamental matrix given the projection matrices how you can compute the AP polls again given the projection matrices and also we have discussed how the homography sir particularly tomography at infinity is inducing induced in this case there they can be they are related how the how it is related
also with the elements of projection matrices so now let us consider the properties of fundamental matrix will be summarizing some of them we have already highlighted so the a very basic property that if you get to corresponding image points of the same scene point then they are related by this particular relationship X prime transpose F X should be equal to zero when we considered the reference image point is X and the second image point is X Prime if I consider the other way then again you can use we can also convert this relation as X
transpose F transpose X prime which means X prime is the reference image point so you note that the matrices a fine F transpose they are related in this fashion so F is the fundamental matrix of this configuration and F transpose also is a fundamental matrix of the studio configuration when we change the plane of reference or reference camera image camera and this is true for any pair of corresponding image points that is a property first property so next is this transposition what you have observed that if F is the fundamental matrix of camera SATA PP
prime so we will be denoting a stereo setup by a pair of camera matrices the first one in that couplet the first one will denote the camera matrix of the reference camera so PP prime if F is the fundamental matrix for that setup and for P prime P then F transpose will be its fundamental matrix then the properties with AP polar lines that if we have an image point X then a people align in the second camera is expressed as L prime equal to F X similarly if you have image point in the other plane
X Prime it's a people align in the reference plane would be L equal to F transpose X Prime and this is what I mentioned earlier that if this relation is called correlation because it is converting a point into a line it's transforming this transformation is known as correlation F is also rank deficient we discussed this while discussing about the solution of a problem and so which means that its inverse does not exist and how then this a peoples are related with X that we discussed in fact a peoples also they are lying on the AP
polar lines always they lie on an a people align and they are the intersections of all the people are lines which is given by this a prime transpose F X that should be equal to 0 or e transpose so they said the conditions so this should be equal to 0 or e transpose F transpose X prime that should be equal to 0 F V transpose X prime equal to 0 so it is just denoting the point contentment relationship of a people's on their respective a people Airlines the other thing what we discussed just we made
a very brief mention about that that F equals 0 which means e is the right null vector of F similarly e prime transpose F is also equal to 0 and E prime is the left null vector of F in the same way so these are some important properties of fundamental matrix and this is another property that determinant of AP is 0 because its rank deficient we have mentioned we have discussed that and particularly it is interesting to note that how many independent parameters are there so one thing I already mentioned that there is a scale
factor associated with F which means if I scale the elements still it will give me the same it will express all those relationships you can note from the relationship itself so for example you take the first fundamental relationship between the corresponding points say X prime transpose FX equal to 0 if I multiply F with an scalar value K still this relationship holds so you can you can check with any other relation that would be the case and then this so this is one particular constraint that the scale is there is a scale factor so which
means F has a nine elements and it reduces one particular parameter by that constraint the other thing is that it's it's a rank deficient its determinant is zero that is the second constraint so there will be seven independent parameters out of those nine elements so its degree of freedom is seven so we will be using this property to discuss about know to know solve a problem here suppose you are given only fundamental matrix entry in our previous problems we have given you the projection matrices and from there you could very easily compute their people's because
by applying that property that a peoples are images of camera centers and given projection matrices you know how to compute camera centers but now if I just give you simply fundamental matrix can you compute its a people's so this is what we would like to see first thing is that in this we are also given an additional problem that is to compute the people align so the first problem is about computation of a parallel lines suppose you have two image points five eight and seven minus five in the left image and you have to compute
the corresponding ap polar lines in the right image and then you compute the right a people and compute the left a P so as I suggested previously also you should stop it should give a pause at that in my video and then again you should work out on this problem so let me discuss the solution of this problem so consider this is the fundamental matrix and for the image point five six it's ap polar line is given in this form if I multiply with if I get its epipolar line l1 which is given by this
vector similarly I can get the AP polar line for the other image points - phi1 so you have to epipolar line so that is that is that is giving me the answer for the first part but one interesting thing I should note here you should note here that suppose this is your image plane where a people are lines are computed that means these are second cameras image plane of a second camera say this is your l1 and say this is your l2 so you know that if people are line all every polar lines they intersect
at a people's so simply by finding out the intersection of l1 and l2 I can get the the right a people so what I need to do I need to perform only l1 + l2 so that is what we we can do here so if I perform that l1 cross L 2 I will get a a a people a people are I will get their people I mean it's a big numbers but you can always no choose the scale to make it a smaller well make all those values small I mean which is shown here
as minus 1 3 1 that is the value so the coordinate of a peephole in the right plane is minus 1 3 in the conventional or or 2 dimensional real geometry to compute the left a people I could have taken note to such any two arbitrary image points in the right image plane and find out they are a people Airlines and apply the same technique but instead I will be discussing about right 0 by finding right 0 of F because that would also give me the left a people which means I have to compute if
the right 0 means that if I multiply the left a people with F it should give me a 0 vector which is a no.3 reform so this is how this competition is shown here since it is a ranked efficient matrix one of the row I can ignore there are only two independent rows and then I will convert this equation I will assume that the coordinate is given up of the right 0 is given in this form l1 l2 1 and if I perform this operation so this will reduce to this expression so I have to
take the inverse of this part minus of this I can reduce this part I use the sub matrix operations and you can show that this is nothing but computation of this particular configuration so you get the right 0 of tape as minus 3/5 I mean it is giving you the coordinates already in the image plane image coordinate plane non homogeneous coordinate system because scale factor you have already assumed as 1 I will show you also that actually the right people what you have computed as an intersection of two AP polar lines we can compute it
also a right zero of F transpose so you take the F transpose so just transpose the matrix F and once again apply the similar technique that means ignore the third row and convert the equations form that these two equations or set of equations in this form and then you solve for the corresponding right a peoples and you will get again you see that you are getting the same answer minus 1/3 so with this let me stop this lecture at this point we will continue this discussion in my next lecture thank you for listening this lecture