Dear community,
In my simulation, foreground images(fg) move on background images(bg) along a continuous trajectory (polynomial, Bezier parametrized with time ) while being continuously scaled and rotated. It means that at any given time I have access to the 2D position of any point on the fg. To calculate the optical flow for each pixel in the reference time, I just calculate vector that connects the center of the pixel at the reference time and final time.
My questions are:
- Is optical flow calculated with respect to the center of each pixel?
- Is my approach described above correct?
- How can I visualize the optical flow vectors calculated?