def transformPointsToImaris(points, scale = (4.0625, 4.0625, 3), offset = (0,0,0)):
    """Transform pixel coordinates of cell centers to work in Imaris
    
    Arguments:
        points (array): point coordinate array
        scale (tuple): spatial scale of the image data
        offset (tuple): spatial offset of the image data
    
    Returns:
        array: scaled points
    """
    
    if len(scale) == 1:
        scale = (scale, scale, scale)
    
    for i in range(3):
        points[:,i] = points[:,i] * scale[i] + offset[i]
        
    return points