plot_cracks

plot_cracks(image, cracks, linewidth=1, color='red', comparison=False, **kwargs)[source]

Plots cracks in the foreground with an image in the background.

Parameters
image: np.ndarray

Background image

cracks: np.ndarray

Array with the coordinates of the crack with the following structure: ([[x0, y0],[x1,y1], […]]) where x0 and y0 are the starting coordinates and x1, y1 the end of one crack. Each crack is represented by a 2x2 array stacked into a bigger array (x,2,2).

kwargs:

Forwarded to plt.figure()

Returns
fig: Figure
ax: Axes