Skip to main content
. Author manuscript; available in PMC: 2011 Feb 14.
Published in final edited form as: IEEE Trans Inf Technol Biomed. 2010 Jun 7;14(5):1275–1278. doi: 10.1109/TITB.2010.2052060
j ∈ [1, m], E(1, j) = 0
for i = 2 to n {n number of contour points}
 for j = 1 to m {m number of states of each contour point}
E(i,j)=minl,l[1,m]{E(i1,l)+αplplpi1,j2+βplpi+1,j2pl+pi1,j2+(Ipl,Ipl)·(npi,npi)+dpl}
  P(i, j) = l for min E(i, j); {stores minimum energy state}
 end
end