Statistics for Algorithms and design aspects of an automated vision based 3-D surface measurement system