openalea.phenomenal.mesh.routines.project_mesh_on_image#

openalea.phenomenal.mesh.routines.project_mesh_on_image(vertices, faces, shape_image, projection)[source]#

Returns a binary image resulting of the projection of a mesh object representation (vertices, faces) with a projection function.

Parameters:
  • vertices (list) – A list of 3d points position

  • faces (list) – A list of 3-tuple index vertices

  • shape_image (tuple) – The shape of the image

  • projection (fct) – projection function

Returns:

image – A 2D numpy array

Return type:

numpy.ndarray