<DIV>thank you for your help, Cory,</DIV>
<DIV>&nbsp; I have use class vtkXMLImageDataWriter and class vtkXMLImageDataReader. but I still could not save the stenciled images, maybe these classes could do it, but I could not do.</DIV>
<DIV>&nbsp;&nbsp;after I have&nbsp;use this class to writer a .vti file for all the stenciled images, I use class&nbsp;vtkImageViewer2&nbsp;to see all the images that I have saved, unluckily, all the images are the same image, which is the image that I save at last. so I don't know what's wrong with it. </DIV>
<DIV>&nbsp; of course, vtkXMLImageDataWriter could save all or part of the images at&nbsp;a time, but what I want to do is like this :</DIV>
<DIV>&nbsp;&nbsp;for example, there is two images. and I save the first stenciled image&nbsp; using class vtkXMLImageDataWriter after I have extracted the ROI, and the .vti file's name is image.vti. and then I would save the second(or the last one) image into&nbsp;the image.vti. at last, using class vtkImageViewer2, you would find the two images are all the second image, and the first stenciled image was lost.</DIV>
<DIV>&nbsp; so, could you tell me, how to add the next stenciled image to the original .vti file(or the same .vti file)?</DIV>
<DIV>&nbsp; thank you for your help again!</DIV>
<DIV>&nbsp; M. J.</DIV>
<DIV>&nbsp;</DIV>