Automatic Registration of Instruments by Photography