Generative models for video analysis and 3D range data applications