Starting from:

$25

Computerization-Lab 1: Image Warping and Bilinear Interpolation Solved

Given a coordinate transform (x,y)=h(x',y') and a source image f(x',y'), compute a transformed image g(x,y) = f(h(x',y')).

Perform backward warping (from the output image to the input image) with a bilinear interpolation, see Fig. 1 (it is also possible to use the function griddata).
Example of transformations, see Fig. 2: 1) translation and rotation (try different angles). 2) To use the data of the file dat to warp the pixels of the test images.
 

                 Fig.1 Bilinear interpolation                               Fig.2 (a) Test image (gray scale). (b) Translation.

 (c) Rotation. (d) Transformation  by using data.dat. 

Notes: 

You have to write a report that describes your work and the obtained results (please include the figures). In the report you must indicate all the surnames of the participants (not other names, e.g. the teachers).
About the code:You have to use relative paths.
You have to write and use functions o You have to provide us a script to test your code.
The code must be uploaded as M-files. All the files (M-files, images, and report) have to be compressed in a single file named “surname_labxx.zip/tgz” (all the surnames of the participants have to be indicated), and then the compressed file has to be uploaded.
 

More products