Nonrigid motion analysis