A Hierarchical Determination of Optimal Camera and Light-Source Positions for Model-Based Recognition