Dear Luis, Thank you very much. I will try the code provided by Nick and give my report. Best Regards Ni Dong Computer Science and Engineering Dept., The Chinese University of Hong Kong -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.itk.org/pipermail/insight-users/attachments/20080707/8b007156/attachment.htm>