({(C(i,j)=C(i,j-1)+I(i,j),when   j≠0C(i,j)=I(i,j),when   j=0)[Formula   4])