Hi,
It may be confusing, but this function doesn't actually create the final textured mesh, but create the structure with uv coordinates for all images before creating the corresponding textures. The depth images are optional, they are used to limit the texture projection to mesh where the depth from mesh matches the one in the depth image. This avoids projecting texture of an object behind the object if the mesh is simplified (or cut the corners).
In general, the function is followed by
util3d::mergeTextures(). See usage in this
example.
EDIT: For 0.18.0, see this
version of that example.
cheers,
Mathieu