Hi everyone:<div><br></div><div>I want to loop over the image domain by increasing specific steps along each direction.</div><div><br></div><div>Which iterator is appropriated for my case?</div><div><br></div><div>I want to realize the following nest loop:</div>
<div><br></div><div>The image size is size_x, size_y, size_z;</div><div><br></div><div>And the steps I want to increase are: step_x, step_y, step_z;</div><div><br></div><div>for (int z=0; z<size_z; z+=step_z)</div><div>
for (int y=0; y<size_y, y+step_y)</div><div> for(int x=0; x<size_x; x+=step_x)</div><div> {</div><div> // calculate response at (x,y,z)</div><div> }</div>
<div><br></div><div>Is there similar example for me to follow? Thanks. </div><div><br></div><div>Best</div><div>Erkang</div>