Very nice job, Bing. It works perfect. Thank you ! Furthermore, I would like to ask you, how can I use/modify this code for 3D- Image/Object? Which functions can I use instead of AC_display, AC_quiver, AC_deform etc.? Actually I want to segment an 3D image and visualize it like your example for 2D-image.