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

조회 수: 16 (최근 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