> In my programming, I want to copy a local variable of vtkImageData to a global variable of vtkImageData, and I tried shallowcopy and deepcopy, but they didn't work. Does anyone have ideas about this problem? > Nope. DeepCopy has always worked for me. Please post a small example demonstrating the problem. John