examples in the vision toolbox fail to load .mat files

Trying to run computer vision toolbox matlab 9.11.0.1769968 (R2021b). Get the following error
>> handData = load('hand3d.mat');
Warning: Variable 'fixed' originally saved as a pointCloud cannot be instantiated
as an object and will be read in as a uint32.
Warning: Variable 'moving' originally saved as a pointCloud cannot be instantiated
as an object and will be read in as a uint32.

답변 (1개)

Steven Lord
Steven Lord 2023년 5월 31일

0 개 추천

The pointCloud function is part of Computer Vision Toolbox and was introduced in release R2015a. Do you have this toolbox installed and licensed? You can check this by running the ver command and looking for a line starting with "Computer Vision Toolbox" in the displayed output.
If that line does not exist you will need to install Computer Vision Toolbox to use this function.

댓글 수: 4

Brian Hodges
Brian Hodges 2023년 5월 31일
이동: Steven Lord 2023년 5월 31일
Yes, here is a the output from ver minus the license number
MATLAB Version: 9.11.0.1769968 (R2021b)
MATLAB License Number: XXXXXXXXXXXXXXXX
Operating System: Microsoft Windows 11 Enterprise Version 10.0 (Build 22621)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.11 (R2021b)
Computer Vision Toolbox Version 10.1 (R2021b)
Image Processing Toolbox Version 11.4 (R2021b)
Signal Processing Toolbox Version 8.7
Brian Hodges
Brian Hodges 2023년 5월 31일
이동: Steven Lord 2023년 5월 31일
There was a problem adding the toolbox, so a new install was done. There an option to install "keeping the matlab environment", but I had to physically add the toolbox directories to the matlab path. ??
It sounds like your path may have been corrupted at some point. Try to restore the default path using restoredefaultpath.
restoredefaultpath resolved the issue. Thanks for the help

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

제품

릴리스

R2021b

태그

질문:

2023년 5월 31일

댓글:

2023년 6월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by