Subpixel Displacement Measurement at 784 FPS: From Algorithm to Hardware System