我对 matlab/octave 很陌生。我使用 octave 的 imread() 函数加载了图像。我尝试对矩阵执行乘法运算,但出现以下错误:
binary operator `*' not implemented for `uint8 matrix' by `matrix' operations
还有其他输入图片的方法吗??
最佳答案
I=imread('...');
I=rgb2gray(I);
I=double(I);
% you can perform the multiplication operation now
关于image - 无法使用与灰度图像矩阵的乘法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20820315/