Undefined function 'ind2rgb8' for input arguments of type 'uint8'

조회 수: 1 (최근 30일)
Daniel barth
Daniel barth 2021년 8월 11일
댓글: Daniel barth 2021년 8월 20일
With 2021a I get this error:
Writing DET for W:\NewRigFiles\LEFTRigDAQ1\2018\July2018\July01_DAQ1_[D]6-27-2018[T]11-17-30%\DET\S1\July01_DAQ1_[D]6-27-2018[T]11-17-32%.mat
Starting parallel pool (parpool) using the 'local' profile ...
Connected to the parallel pool (number of workers: 4).
Analyzing and transferring files to the workers ...done.
Error using ClassifyMultiCatArray (line 5)
The source code (E:\GoogleDrive\programming\MatLabProjects\MultiCatdetect2019\ClassifyMultiCatArray.m) for the parfor-loop that is trying to
execute on the worker could not be found.
Error in MultiCatOnEEGFileNames (line 69)
[DETs] = ClassifyMultiCatArray(ReformData,fb,trainedGN,allImages); % We now analize ReformData, which is filtered
exactly the same as training EEG
Caused by:
Undefined function 'ind2rgb8' for input arguments of type 'uint8'.
Error using remoteParallelFunction (line 84)
Worker unable to find file.
Undefined function 'ind2rgb8' for input arguments of type 'uint8'.
No problem with 2019b
What changed?
Thanks,
Dan

채택된 답변

DGM
DGM 2021년 8월 12일
Do you have mapping toolbox in the newer version? Does anything show up if you test with which()?
which ind2rgb8
If you don't have mapping toolbox, you can probably use
im2uint8(ind2rgb(picture,map))
or if you don't have IPT, you can do
uint8(ind2rgb(picture,map)*255)
That's just my guess though. If there are common pitfalls using parpool, I wouldn't know.
  댓글 수: 1
Daniel barth
Daniel barth 2021년 8월 20일
You were right DGM. I needed to install the mapping toolbox. Although I did not get the message stating that until I took the code out of a "parfor" loop and put it into a "for" loop. Now that the mapping toolbox is installed I put things back into the parfor loop and all works fine.
many thanks,
Dan

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by