Is there a built-in function to apply a whitening transformation on a cv::Mat with 3 channels? I want the image to have a zero mean and a unit variance.