What does this code do?
Show older comments
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,:);
4 Comments
Alexander Salibi
on 30 Apr 2019
KSSV
on 30 Apr 2019
It does by the indices.....this option python also has.
Alexander Salibi
on 30 Apr 2019
Accepted Answer
More Answers (0)
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!