video measuring machine working principle