MRES Exercise #6 Rectifying and Referencing Images Using MATLAB

This exercise is intended to help students to understand how rectify and reference images using MATLAB. Possible applications are outcrop images (with a scale), aerial and satellite images (with reference points).

  1. Take a picture of a rectangular arrangement of objects, such as the exhibition of plates of rocks in the department building.
  2. Rectify and reference the image onto an orthogonal centimeter grid.
  3. Determine the size of the rock plates from the image.

Solution

  1. Take the image with a camera and import the image into MATLAB.
  2. Measure the width and the height of the rectangular arrangement of objects. In our example, the display of rock plates is 656 cm wide and 131 cm high.
  3. Pick pixel xy coordinates from the image using the MATLAB function ginput.
  4. Use the functions fitgeotrans and imwarp to rectify and reference the image.
  5. Use the data cursor of the Figure Window to determine the size of the rock plates.

Download the MATLAB script and example image.