Question: Write a function, call it myWarp, that takes img 2 and the estimated flow, u and v , as input and outputs the ( back

Write a function, call it myWarp, that takes img2 and the estimated flow, u and v, as
input and outputs the (back)warped image. If the images are identical except for a
translation and the estimated flow is correct then the warped img2 will be identical
to img1(ignoring discretization artifacts). Hint: Use scipy.interpolate, interp2d0(try
cubic and linear interpolation) and numpximeshgrid(). Visualize the difference
between the warped img2 and img1 by: (i) take the difference between the two
images and display their absolute value output (use an appropriate scale factor for
pltimshow ()) and (ii) using matplotlib display img1 and the warped img2
consecutively in a loop for a few iterations, the output should appear approximately
stationary. When running matplotlib plots in a loop, you will need to invoke
matplotlib's flush events function to force Python to render the new image to the
existing plot.
Notes: Python only. Don't copy other solutions on Chegg already, as I've tried these already and they don't work for me. Use all functions that are recomended and/or hinted.
Write a function, call it myWarp, that takes img

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!