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 img and the estimated flow, u and v as
input and outputs the backwarped image. If the images are identical except for a
translation and the estimated flow is correct then the warped img will be identical
to imgignoring discretization artifacts Hint: Use scipy.interpolate, interpdtry
cubic and linear interpolation and numpximeshgrid Visualize the difference
between the warped img and img 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 img and the warped img
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 andor hinted.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
