IT

Photogrammetry and drones · 28 June 2018

Photogrammetry with PhotoScan part 7 – mesh and texture

After the dense point cloud, the triangle mesh and the texture: Paolo Rossi on the Build Mesh and Build Texture settings in Agisoft PhotoScan.

Clicking loads the video from YouTube: Google will receive your IP address and may store data on your device. Privacy · Watch it on YouTube

This article is about mesh and texture in photogrammetric processing with Agisoft PhotoScan.

Paolo Rossi’s contributions on photogrammetry with Agisoft PhotoScan continue: in this article, after building the dense point cloud, he talks about generating the 3D triangle mesh and the texture from the photographs.

You’ll find links to all the articles in this series at the bottom of the page.

Mesh and texture

Generating a mesh means creating a surface from a point cloud.
The points are joined into triangles that will form the mesh.

Texturing a model means applying colour content to the mesh. In photogrammetry the content is photorealistic and taken from the acquired images.

Doing these operations in the SfM software used so far is, in my view, an advantage: it makes full use of the potential of the photographs during texturing.
In some cases I’ve used modelling software (MeshLab, Geomagic…) because it offers many more tools for mesh generation and editing.
Interoperability between programs isn’t a problem!

In PhotoScan, continuing down the Workflow menu, we find Build Mesh and Build Texture.

Build Mesh

Surface type

  • ARBITRARY: no prior assumption is made about the surface.
    This setting suits any kind of object or scene; for reasons of time it’s recommended for “small, closed” objects such as statues or buildings.
  • HEIGHT FIELD: with this setting, surface reconstruction is optimised for mainly flat environments (land applications).
    The approach is 2.5D: only one height value is allowed for each point on the horizontal plane.
    This approach isn’t suitable for structures and vertical walls, or sculptures.
    The working area (the bounding box) must be well positioned, because it provides the horizontal reference plane.

Two triangle meshes created in Arbitrary and Height Field mode in Agisoft PhotoScan

Arbitrary (on the right in the image above) needs a lot of memory and longer processing times, and is recommended for reconstructing small objects and projects with few images.
Height field (on the left in the image above) is a solution optimised for large areas and projects with many images.

Comparison of meshes generated in different ways and the hardware resources needed, according to Agisoft

Source data

You can choose to create the mesh from the sparse or the dense cloud.

Face count

This sets the resolution of the mesh being built.
The number of faces is linked to the point cloud being used, and from High to Medium to Low it follows ratios of 1/5, 1/15 and 1/45. With the Custom option you can choose the number you want.

I usually work in Medium or High mode; the results have always been satisfactory, both in calculation time and in interoperability with other software.

Interpolation options

  • If disabled, only the areas corresponding to the point cloud are reconstructed, which gives a more accurate product.
  • If enabled, the points are interpolated within a certain radius.
  • If extrapolated, the final model has no holes, and even large areas with no data can be reconstructed.

In the Tools menu, under Mesh, you’ll find various options to edit and refine the mesh, calculate information, and measure areas and volumes.

Build Texture

Mapping mode

The choice depends on the product we want and determines how the “cut-outs” of the images are selected.

  • GENERIC: no prior assumption is made about the products or the surface; the software tries to create a uniform texture.
  • ADAPTIVE ORTHOPHOTO: the surface is divided into horizontal and vertical regions that are textured separately, ensuring good quality in both.
  • ORTHOPHOTO: the whole object is textured in orthographic projection; the quality of vertical regions is poor.
  • SPHERICAL: suitable for round objects.
  • SINGLE PHOTO: the texture of the whole object is taken from a single image.

Blending mode

Unless single photo mode is enabled, you can choose how the contributions of the various images are combined in the final texture of each pixel.

  • MOSAIC, which involves a two-step approach:

    • low-frequency components are cut out and combined (with a weighted average) to create a seamless background;
    • high-frequency components (the details) are taken from a single image, choosing the one with the most nadir view of the area concerned.
  • AVERAGE: uses a weighted average of the values from the images involved (the weights depend on parameters similar to those described for the high-frequency component of the mosaic approach).

  • MAX/MIN INTENSITY: the contribution with the maximum or minimum intensity for the pixel is chosen.

  • DISABLED: the image in the most favourable position is chosen (as in the mosaic high-frequency approach).

Comparison of textures of the same survey generated with different settings in Agisoft PhotoScan

For datasets with marked variations in lighting you can enable colour correction, but it’s a process that takes a long time. To improve the quality of the final products you can exclude (disable) unwanted or low-quality images (see Image Quality in the second episode of this series).

The mosaic option gives the most pleasing result overall, with gradual transitions and no sharp jumps in brightness; but if you need to zoom into some areas, you may notice a lack of definition because of the averaging/overlapping of the various contributions.

I hope Paolo Rossi’s seventh article, on mesh and texture in PhotoScan, is a good guide or a starting point for going deeper into this step of photogrammetric processing.
Doubts and questions are always welcome!

Thanks, Paolo, for this contribution too.
Knowing the processing steps a bit, I’d say we’re not far from the end of the series; we’re certainly past the halfway mark!
But I leave Paolo completely free to share whatever else he wants on these pages.

See you soon!

Paolo Corradeghini

These are the articles in this series:

Photo of Paolo RossiPaolo Rossi, engineer and PhD in Industrial and Environmental Engineering at the University of Modena and Reggio Emilia, works at the Geomatics Laboratory of the “Enzo Ferrari” Department of Engineering, on 3D reconstruction from images.

I published two videos on the YouTube channel, one on generating the mesh and one on the texture. The videos are in Italian.

← All articles