What does this code do?
Mostrar comentarios más antiguos
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 comentarios
Alexander Salibi
el 30 de Abr. de 2019
KSSV
el 30 de Abr. de 2019
It does by the indices.....this option python also has.
Alexander Salibi
el 30 de Abr. de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!