(image, means=[_R_MEAN, _G_MEAN, _B_MEAN], to_int=True)
return img
Re-convert to original image distribution, and convert to int if
    necessary. Numpy version.

    Returns:
      Centered image.
Re-convert to original image distribution, and convert to int if
    necessary. Numpy version.
Re - convert to original image distribution and convert to int if necessary . Numpy version .
def np_image_unwhitened(image, means=[_R_MEAN, _G_MEAN, _B_MEAN], to_int=True):
    """Re-convert to original image distribution, and convert to int if
    necessary. Numpy version.

    Returns:
      Centered image.
    """
    img = np.copy(image)
    img += np.array(means, dtype=img.dtype)
    if to_int:
        img = img.astype(np.uint8)
    return img
def np_image_unwhitened ( image , means = [ _R_MEAN , _G_MEAN , _B_MEAN ] , to_int = True ) : img = np . copy ( image ) img += np . array ( means , dtype = img . dtype ) if to_int : img = img . astype ( np . uint8 ) return img