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!