Self-Encoded Marker Design for Adaptive Optical Real-Time Motion Correction