def index_to_point(index, origin, spacing):
    """Transform voxel indices to image data point coordinates."""
    x = origin[0] + index[0] * spacing[0]
    y = origin[1] + index[1] * spacing[1]
    z = origin[2] + index[2] * spacing[2]
    return (x, y, z)