An optical 3D digitizer for frameless stereotactic surgery