📄 demo.m
字号:
clcformat compactmore offload samples/coords/syntcdsload samples/coords/realcdsaddpath solvoptaddpath solvopt/uncprobsaddpath mecho on%% press enter to start the calibration with synthetic datapauseclc[Te, Re, Ine, errs, cerrs] = calibr8( [1300, 353, 286, 0, 0], 7, 0.1, PC1, PC2, PC4, PC5 ); quiver( cerrs(:,1), cerrs(:,2), cerrs(:,3), cerrs(:,4) ) figureplot( errs(1,:) )grid onzoom on%% Results of the calibration:%% intrinsic parameters of the camera (focal length, principal points, linear distortion coefficients):fl=Ine(1);pp=[Ine(2),Ine(3)];b=[Ine(4),Ine(5)];fl,pp,b%% estimated rotation matrix:Re%% appropriate euler angles (in degrees):[ox, fy, kz] = deeuler_deg( Re )%% estimated rotation matrix:Te%% extracted translation vector:t = Re * Te(:,3)%%press enter to continue with calibration with real datapauseclose allclc[Te, Re, Ine, errs, cerrs] = calibr8( [1500, 353, 286, 0, 0], 7, 0.1, shot2, shot5, shot9, shot11 ); quiver( cerrs(:,1), cerrs(:,2), cerrs(:,3), cerrs(:,4) ) figureplot( errs(1,:) )grid onzoom on%% Results of the calibration:%% intrinsic parameters of the camera (focal length, principal points, linear distortion coefficients):fl=Ine(1);pp=[Ine(2),Ine(3)];b=[Ine(4),Ine(5)];fl,pp,b%% estimated rotation matrix:Re%% appropriate euler angles (in degrees):[ox, fy, kz] = deeuler_deg( Re )%% estimated rotation matrix:Te%% extracted translation vector:t = Re * Te(:,3)% press enter to finishpauseclose all%% thank you
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -