Combined discriminative and generative articulated pose and non-rigid shape estimation