conv2: First and second arguments must be numeric or logical
显示 更早的评论
I continue to get the same issue although I have two matrices using only integers.
h1 = {-1, -2, -1; 0, 0, 0; 1, 2, 1};
ogI = imread('image.jpeg');
I = rgb2gray(ogI);
I1 = conv2(I, h1, 'same');
imshow(I1);
Even if I set 'I' to a single or double inside of the function it does not work. This may be trivial but anything would help, thank you.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!