For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#PCA whitening involves finding the inverse square root of the covariance matrix | |
#of a set of observations, which is prohibitively expensive when dealing | |
#with natural images | |
#starting with a path to a single image (img_path) | |
import numpy as np | |
from PIL import Image | |
from sklearn import preprocessing | |