cracks_skeletonize
- cracks_skeletonize(pattern, theta, min_size=5)[source]
Get the cracks and the skeletonized image from a pattern.
- Parameters
- pattern: array-like
True/False array representing the white/black image
- theta: float
The orientation angle of the cracks in degrees!!
- min_size: int
The minimal length of pixels for which will be considered a crack
- Returns
- 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).
- skeletonized: np.ndarray
skeletonized image