Hi Just wondering what this bit of code does in a general sense, so far, i've found that it checks for values in image i1 that arent 255 and lists them in a column matrix. however i dont know what the next bit does or even if im correct.
i found it in https://au.mathworks.com/matlabcentral/answers/41089-crack-detection in line 40. Thanks in advance!
[x, y, rgb] = ind2sub([size(i1,1) size(i1,2) size(i1,3)], find(i1 ~= 255));A = i1(min(x):max(x)-1,min(y):max(y)-1,:);
Best Answer