Im Using Matlab 2013a version and having a problem when using command:
boxPoints = detectSURFFeatures(boxImage);
Got error
Error using detectSURFFeatures
Expected input number 1, I, to be two-dimensional.
Error in detectSURFFeatures>parseInputs (line 82)
validateattributes(I,{'logical','uint8', 'int16', 'uint16', ...
Error in detectSURFFeatures (line 71)
[Iu8 params] = parseInputs(I,varargin{:});
As I am beginner and trying to use Matlab for Image processing and seeking help from the example available on the following link: http://www.mathworks.com/help/vision/examples/object-detection-in-a-cluttered-scene-using-point-feature-matching.html#btt5qyu

댓글 수: 3

Sehar Un Nisa
Sehar Un Nisa 2016년 11월 5일
I am having same error with greyscale image
Error in detectSURFFeatures (line 71) [Iu8 params] = parseInputs(I,varargin{:});
Walter Roberson
Walter Roberson 2016년 11월 5일
Please show size() of the image.
It is possible for an image to look gray but actually be an RGB image. If the Red, Green, and Blue color planes are identical at each pixel, then the image will be an RGB image with gray content.
Mohamed Inamul Hasan A
Mohamed Inamul Hasan A 2019년 2월 24일
tq dude.... It works

댓글을 달려면 로그인하십시오.

 채택된 답변

Steven Lord
Steven Lord 2015년 9월 18일

0 개 추천

The documentation for detectSURFFeatures states, in part (emphasis added):
"POINTS = detectSURFFeatures(I) returns a SURFPoints object, POINTS, containing information about SURF features detected in the 2-D grayscale input image I."
This indicates that it does not accept RGB images, which would be 3-D (rows-by-pages-by-3 for the 3 color pages.) Convert your image to grayscale before passing it into detectSURFFeatures.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품

릴리스

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by