openalea.phenomenal.mesh.routines.median_color_from_images#

openalea.phenomenal.mesh.routines.median_color_from_images(vertices, faces, calibration, images)[source]#

Return the colors of each face according the median of their color list in the faces projected images.

Parameters:
  • vertices ([(x, y, z), ...]) – Spatial coordinates for unique mesh vertices.

  • faces ([(V1, V2, V3), ...]) – Define triangular faces via referencing vertex indices from vertices. This algorithm specifically outputs triangles, so each face has exactly three indices

  • calibration (projection function)

  • images (images[id_camera][angle] = image)