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

5 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

DGM
DGM am 12 Aug. 2021
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 Kommentar
Daniel barth
Daniel barth am 20 Aug. 2021
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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Parallel for-Loops (parfor) finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by