extract_voxel_contours#
- extract_voxel_contours(all_voxels: list[tuple[int, int, int]], projection: str, box: tuple[int, int, int]) list[list[tuple[int, int]]] [source]#
Extract contours from list of voxels in specified projection direction.
- Parameters:
all_voxels – List of all voxels in region.
projection – Projection direction.
box – Bounding box.
- Returns:
List of list of contour points.
- get_array_edges(array: ndarray) list[list[tuple[int, int]]] [source]#
Get edges of region in binary array.
- Parameters:
array – Binary array.
- Returns:
List of unconnected region edges.