pysdic.display_projected_mesh_mask#
- display_projected_mesh_mask(mesh, camera, *, warp_by=None, channel=0, show_mesh=True, edge_color='cyan', figsize=None, title=None, show=True)[source]#
Display the pixels covered by the projection of a surface mesh (see
compute_projected_mesh_mask()).For a
pysdic.View: its image with the pixels out of the mask set to NaN (not drawn), i.e. the part of the image seen through the projected mesh.For a
pysdic.Camera: the mask itself (1 in the mask, 0 outside).
- Parameters:
mesh (
pysdic.Mesh) – The surface mesh (with an element type), of dimension \(E\) equal to the input dimension of the camera.camera (Union[
pysdic.Camera,pysdic.View]) – The camera, or a view.warp_by (Optional[Union[str, ArrayLike]], optional) – The displacement of the vertices (name of a vertex property or array of shape \((N_v, E)\)).
channel (Integral, optional (default:
0)) – The channel of the image drawn for an image with several channels.show_mesh (bool, optional (default:
True)) – Whether to draw the edges of the projected mesh.edge_color (str, optional (default:
"cyan")) – The color of the edges of the mesh.figsize (Optional[Tuple[Real, Real]], optional) – The size of the figure in inches (width, height). Default:
(8, 6).title (Optional[str], optional) – The title of the figure. By default, the number of pixels of the mask.
show (bool, optional (default:
True)) – Whether to show the figure.
- Returns:
The figure.
- Return type: