Operands to the || and && operators must be convertible to logical scalar values
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nick Ware
am 3 Dez. 2019
Kommentiert: Nick Ware
am 3 Dez. 2019
I an writing code and can't figure out why this line of code will not workk. Both sides of the && are either true or false
totalCorners = 0;
threshhold = 200000;
height = size(cornerResponseFunction, 1);
width = size(cornerResponseFunction, 2);
for u = 1:height<=u
for v = 1:width<=v
if ((cornerResponseFunction(u,v) > threshhold) && isLocalMaxB(cornerResponseFunction, u, v))
totalCorners = totalCorners + 1;
cornerList(totalCorners).x = u;
cornerList(totalCorners).y = v;
cornerList(totalCorners).q = q;
end
end
end
0 Kommentare
Akzeptierte Antwort
James Tursa
am 3 Dez. 2019
Did you mean this
for u = 1:height<=u
for v = 1:width<=v
to be this
for u = 1:height
for v = 1:width
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Standard File Formats finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!