ECE 564 Computer Vision Assignment 4

Submit HTML documentation on Isidore. Include MATLAB files needed to reproduce your published MATLAB.

  1. Scan the faces of some boxed product and generate and accurate model of that box. Your published MATLAB should include views showing all sides of the box. Bring the box to show in class or send me a photo to ensure there are no duplicates. Save the box for use later in the semester. Make the dimensions match those of the original box. Note that for successful texture mapping, the size of the texture images must not be too large. See Raisin Bran box example.

  2. Use the images taken in class 6 Feb 2019 (available from Isidore resources as and the results of MATLAB cameraCalibrator to location of the camera in the room from the Extrinsics for the target boards from two walls. Use images 2019-02-06_17-40-38.JPG, 2019-02-06_17-41-22.JPG, 2019-02-06_17-41-56.JPG and 2019-02-06_17-42-12.JPG. Compare the extrinsics distances for each pair of images and to those measured directly. See example for a crucial formula.

  3. Using the images and corner data from, find the vanishing points for the rows and columns of each image. If the vanishing points are not too distant, show the vanishing points on the same figure as the image, as shown here.

  4. The Bouguet calibrator function rodrigues.m has some hidden code to test the function. Extract this hidden code and use it as part of a test function using published MATLAB principles to demonstrate the use and accuracy of the function.

  5. Calculate the focal length of the MATLAB camera from images from hall model4, which are stored in Use this data to determine the numerical value of focal length used in the MATLAB script.

  6. Calibrate the MATLAB camera using the calibration toolbox with images from hall model4, which are stored in Note that the distortion parameters should be zero. Compare the focal length that obtained in the previous problem. Also compare the target locations (from extrinsics) to the MATLAB values.

Maintained by John Loomis, last updated 19 February 2018