Monocular Visual Simultaneous Localization and Mapping Error: Dot indexing is not supported for variables of this type.

5 ビュー (過去 30 日間)
Hi, I am trying to follow the Monocular Visual Simultaneous Localization and Mapping tutorial found here: https://www.mathworks.com/help/vision/ug/monocular-visual-simultaneous-localization-and-mapping.html
The code runs until frame 29 but then then crashed and produces the error message
* Encoding 2 images...done.
Finished creating the image index.
Dot indexing is not supported for variables of this type.
Error in helperAddLoopConnections (line 11)
imageSize = intrinsics.ImageSize;
Error in vSLAM (line 316)
[isLoopClosed, mapPointSet, vSetKeyFrames] = helperAddLoopConnections(mapPointSet, vSetKeyFrames,
validLoopCandidates, currKeyFrameId, currFeatures, currPoints, loopEdgeNumMatches);
and when I go to line 11 in the helperAddLoopConnections function provided in the examples folder the code shows
imageSize = intrinsics.ImageSize;
I've tried changing it to instrinsics(ImageSize) but then the code has the error that there is no variable called ImageSize...
Any help is appreciated, thanks!
  2 件のコメント
Qu Cao
Qu Cao 2021 年 5 月 11 日
編集済み: Qu Cao 2021 年 5 月 11 日
Which release are you using? Did you change the code? helperAddLoopConnections doesn't have an intrinsics input.
Samantha Betts
Samantha Betts 2021 年 5 月 11 日
I am using R2020B, and I did not change the code, except when I tried to fix that error... is there a way to redownload the helperAddLoopConnections.m file? The one I have had the line imageSize = intrinsics.ImageSize; at line 11.
Thanks!

サインインしてコメントする。

採用された回答

Qu Cao
Qu Cao 2021 年 5 月 11 日
The example has been updated over the past few releases. For 20b version, please check the following documentation:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePoint Cloud Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by