Error in image processing, detectSURFFeatures

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

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.
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)

This question is closed.

Asked:

on 26 May 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!