【发布时间】:2010-10-13 14:56:55
【问题描述】:
我在 MATLAB 中有一个 RGB 图像,我想遍历每个像素并检查它是否是肤色(ish)[我可能稍后会在 HSV 空间中执行它以消除照明等的影响]
有人知道最好的方法吗? MATLAB 奇怪的语法让我有点困惑!
目前我有:
for x = 1:size(I,1)
for y = 1:size(I,2)
%Get the value from this x,y coordinate and check the colour.
end
end
但我认为这是非常错误的。
如何正确访问矩阵的不同部分?
【问题讨论】:
标签: matlab image-processing colors rgb