nanomesh.utils

Functions:

compare_mesh_with_image(image,Β mesh[,Β cmap])

Compare mesh with image.

pairwise(iterable)

s -> (s0,s1), (s1,s2), (s2, s3), ...

nanomesh.utils.compare_mesh_with_image(image: np.ndarray, mesh: TriangleMesh, cmap: str = None, **kwargs)[source]

Compare mesh with image.

Parameters
  • image (2D array) – Image to compare mesh with

  • mesh (TriangleMesh) – Triangle mesh to plot on image

  • cmap (str) – Matplotlib color map for matplotlib.pyplot.imshow()

  • **kwargs – These parameters are passed on to plotting function.

Returns

ax

Return type

matplotlib.axes.Axes

nanomesh.utils.pairwise(iterable)[source]

s -> (s0,s1), (s1,s2), (s2, s3), …