Vision-based 3D Human Motion Analysis in a Hierarchical Way