make_voxels_array#
- make_voxels_array(voxels: list[tuple[int, int, int]], reference: list[tuple[int, int, int]] | None = None, scale: int = 1) np.ndarray [source]#
Convert list of voxels to a binary image array.
- Parameters:
voxels – List of (x, y, z) voxels.
reference – List of (x, y, z) reference voxels used to define center and image size.
scale – Scaling factor for image array.
- Returns:
Binary image array.