Question: need the python code of each question 1. Implement your own function my_translation() for image translation by any given number of pixels between [-100, +100],
need the python code of each question

1. Implement your own function my_translation() for image translation by any given number of pixels between [-100, +100], in both x and y. Note that this can be a real number (partial pixels). Display images translated by (2.0,4.0),(- 4.0,-6.0),(2.5, 4.5), (-0.9,1.7), (92.0,-91.0) (0.20 for each image, 1.0 mark in total). Note: positive for away from upwards and right from the bottom left hand corner. 2. Compare forward and backward mapping and analyze their difference (1.0 mark) 3. Compare different interpolation methods and analyze their difference (1.0 mark) Hint: When analyzing the difference, you can focus on: (1) visual results; (2) the principles in terms of formulation or others relevant; (3) advantages and drawbacks; (4) the computational complexity. You can also think about it from other aspects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
