openalea.phenomenal.multi_view_reconstruction.multi_view_reconstruction.project_voxels_position_on_image
- openalea.phenomenal.multi_view_reconstruction.multi_view_reconstruction.project_voxels_position_on_image(voxels_position, voxels_size, shape_image, projection)[source]
Create a image with same shape that shape_image and project each voxel on image and write positive value (255) on it.
- Parameters:
voxels_position ([(x, y, z)]) – cList (collections.deque) of center position of voxel
voxels_size (float) – Size of side geometry of voxel
shape_image (Tuple) – size height and length of the image target projected
projection (function ((x, y, z)) -> (x, y)) –
- Function of projection who take 1 argument (tuple of position (x, y, z))
and return this position 2D (x, y)
- Returns:
out – Binary image
- Return type:
numpy.ndarray