Application of photogrammetry to automated finishing operations