Text this: Algorithm of Digital Image Preprocessing for Constructing Displacement Vector Fields