How to read pixel labels in pixellabel datastore.
Show older comments
The prdefined pixel labels provided are:
ground-glass (mask value =1), consolidation (=2) and pleural effusion (=3).
But I am getting error while running the code:
Error: "Error using pixelLabelDatastore>parseInputs (line 265)
The value of 'classNames' is invalid. 'ground-glass' is not a valid class name. Class names must be valid MATLAB variable
names. See ISVARNAME for more details.
Error in pixelLabelDatastore (line 211)
[location, classes, values,params] = parseInputs(varargin{:});
"
pxDir = fullfile('C:\Users\Admin\Downloads\13521488\Mask');
classNames = ["Background","ground-glass" ];
pixelLabelID = [0 1]
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
Accepted Answer
More Answers (1)
Image Analyst
on 12 Jun 2021
0 votes
Duplicate of question already asked and answered:
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!