Hi,<br><br>I have taken a 3D data,took a slice of it, done some processing on it and again i want to write the modified data on 3D data.<br><br>So to go to a specific slice and write modified data i&#39;m using (IndexIt)&quot;ImageRegionConstIteratorWithIndex&quot; but using this iterator i&#39;m not able to set the value,so i ran another iterator(labelIt)&quot;ImageRegionIterator&quot;,but they are incrementing in a different 
way.The code is:<br><br>&nbsp;IndexIt(LabelImage,LabelImage-&gt;GetLargestPossibleRegion());(ImageRegionConstIteratorWithIndex)<br><br>labelIt(LabelImage,LabelImage-&gt;GetLargestPossibleRegion());(ImageRegionIterator)<br><br>
LabelImage is a 3D volume data of char type;<br><br><br>for(IndexIt.GoToBegin() , labelIt.GoToBegin() ; IndexIt.GetIndex()[2] &lt; 8 ;++IndexIt ,++labelIt ) ;<br><br>at the end i&#39; getting&nbsp; IndexIt ={0,0,8},&nbsp; labelIt={0,4096, 28554296}; 
<br><br>Can anyone tell me what is the difference between two iterators&nbsp;&nbsp;&nbsp; and&nbsp;&nbsp; any possible solution to modify my 3D data from slice.<br><br><br>Thanks In Advance,<br><br>Raja Yalamanchili.(UH)<br><br>