How can I get the structure from motion from multiple views example code to run?

24 次查看(过去 30 天)
I'm running MATLAB R2017b and trying to get started with the computer vision toolbox. I've checked using ver that I have correctly installed everything and seem to be running "Computer Vision System Toolbox" Version 8.0 but when I try the example code for SfM from multiple views I receive the following error message:
Undefined function or variable 'helperEstimateRelativePose'.
Error in SfM_example (line 69)
[relativeOrient, relativeLoc, inlierIdx] = helperEstimateRelativePose(matchedPoints1, matchedPoints2,
cameraParams);
The help directory also does not list helperEstimateRelativePose, so any advice is appreciated.
My full script is attached for reference.

采纳的回答

Robert Watson
Robert Watson 2017-11-14
编辑:Robert Watson 2017-12-5
Ah turns out the helperEstimateRelativePose.m script is stored locally with the example but not online. Should be visible at: C:\Users\<username>\Documents\MATLAB\Examples\vision\StructureFromMotionFromMultipleViewsExample
Edit: I also realised that the files only appear locally once the command below has been run. This command is given when the "try in MATLAB" link is clicked in the online documentation (visible when signed in to your Mathworks account).
openExample('vision/StructureFromMotionFromMultipleViewsExample')
The script is also attached, but for the most up to date version use the method above.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by