Optical flow algorithm: The principle of image transformation based on optical flow (monocular) or parallax (binocular)

Source: Internet
Author: User

Take the optical flow as an example.

In order to obtain a more accurate optical flow value, we usually get the J-Shift (-U,-V) WARPJ by setting the approximate optical flow of the previous frame I relative to the next frame J (u,v). Then, I calculate the optical flow (DU,DV) relative to the WARPJ. Thus, a more precise optical flow (U+DU, V+DV) is obtained. This process can be repeated to get more accurate optical flow, which is called the outer loop process in the computational framework of the optical flow.

It is important to note that the outer loop is usually executed only once, because it is time consuming to transform J to WARPJ. So we assign more accurate optical flow calculations to the inner loop process. Here, we are not discussing the inner loop process for the moment.

So how do you change J to WARPJ?

The conversion of J to WARPJ is (-u,-V), which means that the WARPJ to J is (U,V). Then, the grayscale value at WARPJ (x, y) should be equal to the gray value at J (X+u, Y+v). So, we just need to find the gray value of J (X+u, Y+v) and assign it to WARPJ (x, y). Since (X+u, y+v) is usually a non-integer coordinate, interpolation is required to calculate it.

Optical flow algorithm: The principle of image transformation based on optical flow (monocular) or parallax (binocular)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.