Partial preview of the text
Download Computer Vision - Lecture Notes | CS 4495 and more Study notes Computer Science in PDF only on Docsity!
Let z’ = 2-2, and y’ = y~ g. Setting the derivatives of E with respect to a’, 6, and c’ to zero, and using the fact that Me =Ye-a) 50 Xv =S-y=0 we get: No 0 / Uf 0 Ye? Laty | |e] | 2 f(2,9) (19) 0 Ley Cy lle dL oy sey) In this case we get a’ directly, and need to invert only a 2 x 2 matrix to get b/ and c’. In fact, if the region R is rectangular (as is the case while we work with the quad-tree), J) z’y’ = 0, so that the matrix is diagonal, and inversion is trivial. We can get the parameters a, b, and ¢ directly from the parameters a’, b’, and c’ by noting that: a a’ +b(2-—)+e(y—9) =(e'-be-—cg) +b ately and therefore concluding: = a —vF-c'§ y , c= ie The error of the fit can also be easily computed. Let f(z.y) = (a + bz + cy) Then by ul Yctev)- fly? YAW fle) - ew) -Y fe w(Hey)- fey) Using the well known orthogonality principle the second term is zero. Therefore: SPEwW- DY few) VL Pey)- aS fey) - bo efl2.y)-¢ Vy flz.y) (20) It should be noted that the last three summations in this equation are also used in the computation of the parameters a, 6, and c, and so do not need to be recomputed. Plane-fitting of the flow fields in the split and merge algorithm is done independently for the z and y components giving a total of six parameters az, by, Cz, ay, by, and cy. The total error in the fit is taken to be the sum of the errors in the fits of the z and y components. A final observation is that if along with each tegion, R;, we keep the summations involved in the computation of its plane-fit parameters, then computing the parameters for a region Rj J R; is a relatively simple operation. We simply need to add up the individual sums from the two regions to get the corresponding summations for the merged region. Thus the merging operations used in E 13