code leaves its scope and then so does the output image data. How can I get around that without copying the data from the itk image into another chunk of memory (which is a waste of time and memory)? Thanks david __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com