ReadFcn error from nhdr_nrrd_read
1 view (last 30 days)
I am building a trainnetwork script and trying to build 2 databases: one uses mha_read_volume and the other uses nhdr_nrrd_read. The error message is coming from the nrrd reader stating: The output of the custom ReadFcn must be a categorical matrix
I think it has something to do with the 'data' field not being read in properly, but I'm not sure how to fix it.
I attached the trainnetwork script along with a screenshot of the error message. If anyone has any ideas how to fix this please send help!!