In the below code, I want to calculate the net sum of intensity at the end of the loop, but the objective C calls zsum undeclared variable in the NSlog. How do I calculate Sum at the end off loop and pass it outside the loop.In the below code, I want to calculate the net