What does this code do?
显示 更早的评论
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 个评论
Alexander Salibi
2019-4-30
KSSV
2019-4-30
It does by the indices.....this option python also has.
Alexander Salibi
2019-4-30
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!