Week 3: Photogrammetry Prep

Photogrammetry is the process whereby multiple photographs of an object are stitched together to make a 3d model of the object; the photographs are then draped over the model to make it photorealistic. Because of the physics of photography (focal distances of lenses and so on) a computer can calculate the relative positioning of overlapping points it identifies in multiple photographs, and with a bit of trig it works out the points-in-space. Then it joins these points up by connecting to the nearest neighbouring points, creating a series of triangles or ‘mesh’.

A common digital format then for these models is a folder with a .obj file describing the geometry of the object, a .png file with all of the texture information, and a .mtl file that tells the computer how to drape the texture onto the model. Services like sketchfab.com let you upload a zip file of such a folder, and then display or annotate the object. Here’s one I did of a gravestone of one of the Moodie family burials:

The general process runs like this:

  • image capture: take overlapping images; you want a high degree of overlap. Knowing the ‘interior and exterior’ orientation of the camera - its internal arrangements, including lens distortion, focal length and so on from the metadata bundled with the image, allows software to work out the position of the camera with regard to the points of overlap in the images.
  • image matching: tie points are matched and camera orientations are deduced
  • dense point cloud generation. The intersection of rays then allows us to work out the location of these points in space
  • secondary product generation
  • analysis / presentation

We’re not making models just yet. Rather, I want you to take both video and photos of either a gravestone that interests you or a small object you have handy around your home.

For the video, walk around the gravestone/object such that you capture a view of it from its bottom third, its middle third, and its top third (so go around it three times).

For the photos, you want to make sure you have a significant amount of overlap between photos; 24 or so will do the trick. Again, make sure that you get coverage from the bottom, middle, and top as best you can. Notice how taking multiple photographs, from multiple angles, really forces you to look at the object… what do you notice?

We’ll come back to these photos later in the term (in week 10) to try to make a model from them; I will walk you through a notebook that shows how the process all works.

If you’re interested, you can sign up for a free account with Polycam.com and load your photos / video into their service and get very good results. Be careful and avoid signing up for any of their paid services, at least for the purposes of this course; their pop-ups encouraging you to sign up for pro accounts can be closed. We’ll talk more about this in week 10.
Prev