clear;
calibpts
im = imread('d:\comp vision\images\stereo1.jpg' );

 % used to obtain uv
 % [u, v] = ginput(12)   % digitise 12 points in the image
 % uv = [u, v]'


% uv matrix obtained for stereo1.jpg
uv1 = [388   422   391   426   395   429   259   324   260   326   260   328;
       270   244   199   177   125   105   259   275   188   204   115   130];
  
% uv matrix obtained for stereo1.jpg
uv2 = [392   460   395   463   398   468   303   332   306   334   307   336;
       278   267   206   198   133   126   240   266   172   196   102   125];
   
c1 = [0.6596   -0.7391   -0.0615  363.4235;
     -0.1851   -0.1387   -0.9437  342.7417;
      0.0005    0.0003   -0.0003    1.0000];
  
c2 = [0.9234   -0.2221   -0.0257  347.7796;
     -0.0741   -0.2278   -0.9168  339.8960;
      0.0002    0.0004   -0.0002    1.0000];



c =  calibrate(im, calibPts, uv1)


