Updated hidden values of training set of grayscale and red color channel of images