Home > Software engineering >  Matlab image edges
Matlab image edges

Time:09-17

O great god explain what meaning is this program every line of code
NEdge=6;
IStart=1 + nEdge;
IEnd=size (I, 1) - nEdge;
JStart=1 + nEdge;
JEnd=size (I, 2) - nEdge;
CheckNum=15;
While (sum (I (iStart, nEdge + 1: nEdge + checkNum * 18))==0)
IStart=iStart + 1;
End
While (sum (I (iEnd, nEdge + 1: nEdge + checkNum * 18))==0)
IEnd=iEnd - 1;
End
While (sum (I (iStart + 1: iStart + checkNum, jStart))==0)
JStart=jStart + 1;
End
While (sum (I (iStart + 1: iStart + checkNum, jEnd))==0)
JEnd=jEnd - 1;
End
Res=I (iStart: iEnd, jStart: jEnd);

CodePudding user response:

Have a great god can solve
  • Related