Vision-based displacement measurement sensor using modified