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'm using (IndexIt)"ImageRegionConstIteratorWithIndex" but using this iterator i'm not able to set the value,so i ran another iterator(labelIt)"ImageRegionIterator",but they are incrementing in a different
way.The code is:<br><br> IndexIt(LabelImage,LabelImage->GetLargestPossibleRegion());(ImageRegionConstIteratorWithIndex)<br><br>labelIt(LabelImage,LabelImage->GetLargestPossibleRegion());(ImageRegionIterator)<br><br>
LabelImage is a 3D volume data of char type;<br><br><br>for(IndexIt.GoToBegin() , labelIt.GoToBegin() ; IndexIt.GetIndex()[2] < 8 ;++IndexIt ,++labelIt ) ;<br><br>at the end i' getting IndexIt ={0,0,8}, labelIt={0,4096, 28554296};
<br><br>Can anyone tell me what is the difference between two iterators and any possible solution to modify my 3D data from slice.<br><br><br>Thanks In Advance,<br><br>Raja Yalamanchili.(UH)<br><br>