Video-based dynamic garment representation and synthesis