Clustering Dynamic Textures with the Hierarchical EM Algorithm for Modeling Video