The assigned pixel name is having error in semnatic segmentation "pixellabeldatastore".
1 次查看(过去 30 天)
显示 更早的评论
The code i am working upon:
pxDir = fullfile('C:\Users\Admin\Downloads\13521488\Mask');
classNames = ["Background","ground-glass" ];
pixelLabelID = [0 1]
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
Error displayed:
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{:});
Note- Predefined labels are:
ground-glass (mask value =1), consolidation (=2) and pleural effusion (=3)
0 个评论
采纳的回答
Image Analyst
2021-6-8
Evidently it doesn't like the minus sign. Try
classNames = ["Background","GroundGlass"]; % String vector
or
classNames = {'Background', 'GroundGlass'}; % Cell array
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!