MATLAB: Can u please tell me that here ‘a’ is a array or matrix and what it means by max(max(aa))

surf feature detection

points = detectSURFFeatures(B);
axes(handles.axes1);
imshow(B); hold on;
plot(points.selectStrongest(10));
title('SURF feature result on input image','fontsize',15);pause(1);
a = points
aa = a.Scale
a1 = max(max(aa))
a2 = round(a1)

Best Answer

  • max() on an array gives a row vector that contains the max of each columns. It has as many elements as there are columns. If you take max(max()) then it gives the max of the column maxes, which will give you the overall max of the whole array. It's the same as doing max(a(:)), which is what I usually do.