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

1 visualización (últimos 30 días)
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

Respuesta aceptada

DGM
DGM el 12 de Ag. de 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 comentario
Daniel barth
Daniel barth el 20 de Ag. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Parallel Computing Fundamentals en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by