Info

This question is closed. Reopen it to edit or answer.

Error in image processing, detectSURFFeatures

2 views (last 30 days)
Massimo Colavita
Massimo Colavita on 26 May 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello
A = imread('pnt.jpg');
I = rgb2gray(A);
corners = detectFASTFeatures(I,'MinContrast',0.8);
J = insertMarker(I,corners,'circle');
point = detectSURFFeatures(I);
figure;
imshow(J);
figure;
imshow(I);
title('Strongest Feature Points');
hold on;
plot(selectStrongest(point, 5));
imshow(J);
I have this error
Operands to the || and && operators must be convertible to logical scalar values.
Error in vision.internal.FeaturePoints/plot (line 152)
if k==1 && ~wasHeld
Error in SURFPoints/plot (line 172)
h = plot@vision.internal.FeaturePoints(this, ...
  2 Comments
Image Analyst
Image Analyst on 27 May 2015
The error message does not mention the line of your code that caused the error. Please copy the whole error message, including the part that mentions the line number and code of your code.
Dima Lisin
Dima Lisin on 27 May 2015
Hi Massimo,
Which version of MATLAB are you using? Also, could you post a link to the actual image that you've used?

Answers (0)

Community Treasure Hunt

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

Start Hunting!