【发布时间】:2021-10-03 10:09:05
【问题描述】:
Matlab 应用程序imageLabeler 应该支持以下格式:
imageLabeler(imgStore)
我有一个imgStore,定义如下:
imds = imageDatastore(cellArrayOfImageFilenames);
imgStore = transform(imds, @(x)demosaic(x,'rggb'));
我必须这样做,因为我的图像存储为拜耳编码图像,这是我想出的让 imgStore 将这些图像作为 3 通道 RGB 图像返回的唯一方法。但是,当我尝试初始化 imageLabeler 时,我收到此错误:
>> imageLabeler(imgStore)
Error using imageLabelerInternal
Expected input name to be one of these types:
char
Instead its type was matlab.io.datastore.TransformedDatastore.
Error in vision.internal.imageLabeler.imageLabelerInternal
Error in imageLabeler (line 58)
vision.internal.imageLabeler.imageLabelerInternal(varargin{:});
TLDR: 如何让 imageLabeler 处理我的拜耳编码图像?
【问题讨论】: