What is Error occupy for pixellabeldatastore code is following. ?

조회 수: 2 (최근 30일)
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, ...

채택된 답변

Walter Roberson
Walter Roberson 2020년 9월 8일
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
hla hla myint
hla hla myint 2020년 9월 9일
I run the matlab 2018b for pixe;llabeldatastore.
Walter Roberson
Walter Roberson 2020년 9월 9일
r2019a is when the option was added

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

hla hla myint
hla hla myint 2020년 9월 8일
I create this function using matlab 2018b. Dataset is Brats 2016 and 2017 3 D volumetric brain tumor.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 9월 8일
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} ) ;

댓글을 달려면 로그인하십시오.

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by