Matlab detectSURFFeatures() error: "Expected input number 1, I, to be two-dimensional."
Matlab detectSURFFeatures() error: "Expected input number 1, I, to be two-dimensional."
我正在关注 Matlab > 帮助指南 "Object Detection in a Cluttered Scene Using Point Feature Matching" 并且 detectSURFFeatures() 出现错误,因为它需要一个二维输入参数。 .png 也不起作用。
boxImage = imread('C:\WORK\images for feature matching\iPhone6p_back_clean.JPG');
boxPoints = detectSURFFeatures( boxImage );
使用 detectSURFFeatures 时出错
期望输入数字 1,I,是二维的。
detectSURFFeatures>checkImage 出错(第 124 行)
验证属性(我,{'logical','uint8','int16','uint16',...
detectSURFFeatures 出错(第 81 行)
检查图像(我);
修复方法如下:
boxPoints = detectSURFFeatures( rgb2gray( boxImage ));
我正在关注 Matlab > 帮助指南 "Object Detection in a Cluttered Scene Using Point Feature Matching" 并且 detectSURFFeatures() 出现错误,因为它需要一个二维输入参数。 .png 也不起作用。
boxImage = imread('C:\WORK\images for feature matching\iPhone6p_back_clean.JPG');
boxPoints = detectSURFFeatures( boxImage );
使用 detectSURFFeatures 时出错 期望输入数字 1,I,是二维的。
detectSURFFeatures>checkImage 出错(第 124 行) 验证属性(我,{'logical','uint8','int16','uint16',...
detectSURFFeatures 出错(第 81 行) 检查图像(我);
修复方法如下:
boxPoints = detectSURFFeatures( rgb2gray( boxImage ));