I am using surf features detector on an image.i applied the correct procedure as matlab described but get following error
Error using imageDisplayValidateParams
Expected input number 1, I, to be one of these types:
numeric, logical
Instead its type was SURFPoints.
Error in imageDisplayValidateParams (line 12)
validateattributes(common_args.CData, {'numeric','logical'},...
Error in imageDisplayParseInputs (line 79)
common_args = imageDisplayValidateParams(common_args);
Error in imshow (line 220)
[common_args,specific_args] = ...
Error in Untitled (line 24)
imshow( I);
my code :
I=imread('Image21.jpg');
I=rgb2gray(uint8(I));
I=detectSURFFeatures(I);
imshow( I);

Respuestas (1)

Geoff Hayes
Geoff Hayes el 25 de En. de 2015
Hassan - your I, after the call to detectSURFFeatures(I), is no longer an image but a SURFPoints object (see detectSURFeatures output for details) and so the error message makes sense (since this is an incompatible input to the imshow function). Instead, what you could try (based on the example in the given link) is something like
I=imread('Image21.jpg');
I=rgb2gray(uint8(I));
points=detectSURFFeatures(I);
imshow(I);
plot(points.selectStrongest(10));

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 25 de En. de 2015

Respondida:

el 25 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by