⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example

📁 三维重建
💻
字号:
Heres a short example of how to use the [stereo]camera model:

Open Matlab, change to the directory where copied the camera models and type:

load toydata\ThirdOrderParams.mat % this loads the flags and restrictions of the single camera partners
load toydata\CameraData.mat % loads example training and testing data
load toydata\startingValues.mat % loads appropriate starting values for fitting the model to the data

If you want to train a stereocameramodel, you have to type:

ste = StereoCameraModel(P(1:2),Pl(3:5)',Pr(3:5)',flags,restrictions,Xtrain,Ytrain,2) % trains the stereocameramodel

To train a single camera model, you have to type:
cam = CameraModel(P) % initialize the camera model
cam = setRestrictions(cam,restrictions) % set the example restrictions 
cam = setFlag(cam,1:42,flags) % set the example flags
Param0 = fit(cam,Xtrain,Ytrain) % fit the model to the data without improving the spatial coordinates
Param1 = fit(cam,Xtrain,Ytrain,1) % fit the model to the data with improving the spatial coordinates

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -