How to pull the data value from a 1x1 struct with 12 fields and store that for corresponding images in a pixelLabelDatastore?
Mostrar comentarios más antiguos
Hey i'm trying to read in volumes to ultimately train a network but im encountering this error:
Error using trainNetwork (line 183)
The output of the custom ReadFcn must be a categorical matrix.
Error in praxisNetwork1_0 (line 40)
net = trainNetwork(ds,lgraph,options)
Caused by:
Error using matlab.io.datastore.PixelLabelDatastore/validateCategoricalMatrix (line 309)
The output of the custom ReadFcn must be a categorical matrix.
I'm reading in .nrrd files for the pixelLabelDatastore and manage to read them in with the mathworks .nrrd reader however I can't seem to get just the data field of the struct that gets read in. I believe the categorical matrix error is occurring because the network attempts to utilize this struct field instead of the categorical matric that is the data field. This issue doesnt appear when I read in the training images because those files came as .mha's which are read in as categorical matrices. Any ideas or suggestions are appreciated.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


