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

1 次查看(过去 30 天)
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