You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

灰度人脸图像无法获取通道1,转灰度后问题仍存的技术求助

灰度图像通道获取问题求助

相关图像

原始灰度人脸图像:
原始灰度人脸图像
补充图像:
补充图像

运行代码

originalImage = imread('greyface1.jpg');
[rows, columns, numberOfColorChannels] = size(originalImage)
if numberOfColorChannels > 1
    rgbImage = originalImage;
else
    fprintf('It is not really RGB like we expected - it is grayscale.\n');
    rgbImage = cat(3, originalImage, originalImage, originalImage);
end

问题说明

处理灰度人脸图像时,无法获取通道1;已将代码从rgb2grey修改为当前版本,但问题仍未解决,特此附上图片、代码及当前输出寻求技术帮助。

内容的提问来源于stack exchange,提问作者KARTIKEYA SRINIVAS

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 14:10:12