Application of bilateral filtration with weight coefficients for similarity metric calculation in optical flow computation algorithm