A model-based vision system for complex object recognition by means of subpart classification