Borrar filtros
Borrar filtros

What is Error occupy for pixellabeldatastore code is following. ?

1 visualización (últimos 30 días)
for 3 D volumetric mri brain tumor image and file extension is nii. with my matlab code as following
classNames = ["background","tumor"];
pixelLabelID = [0 1];
pxds = pixelLabelDatastore(im ,classNames,pixelLabelID, ...
'FileExtensions','.nii','ReadFcn',volReader);
Error using pixelLabelDatastore>parseInputs (line 202)
'FileExtensions' is not a recognized parameter. For a list of valid name-value pair arguments,
see the documentation for this function.
Error in pixelLabelDatastore (line 151)
[location, classes, values,params] = parseInputs(varargin{:});
Error in SEp1 (line 27)
pxds = pixelLabelDatastore(im,classNames,pixelLabelID, ...

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Sept. de 2020
You did not indicate your MATLAB release.
The FileExtensions option was not available in some earlier releases. My memory is saying that it was added in one of the 2019 releases.
  2 comentarios
hla hla myint
hla hla myint el 9 de Sept. de 2020
I run the matlab 2018b for pixe;llabeldatastore.
Walter Roberson
Walter Roberson el 9 de Sept. de 2020
r2019a is when the option was added

Iniciar sesión para comentar.

Más respuestas (1)

hla hla myint
hla hla myint el 8 de Sept. de 2020
I create this function using matlab 2018b. Dataset is Brats 2016 and 2017 3 D volumetric brain tumor.
  1 comentario
Walter Roberson
Walter Roberson el 8 de Sept. de 2020
You will need to add the complete list of file names instead of a directory name.
dinfo = dir( fullfile(im, '**, '*.nii'));
filenames = fullfile( {dinfo.folder}, {dinfo.name} ) ;

Iniciar sesión para comentar.

Categorías

Más información sobre Computer Vision Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by