44 if self.
mean is not None:
45 img[:, :, 0] = img[:, :, 0] - self.
mean[0]
46 img[:, :, 1] = img[:, :, 1] - self.
mean[1]
47 img[:, :, 2] = img[:, :, 2] - self.
mean[2]
48 if self.
std is not None:
49 img[:, :, 0] = img[:, :, 0] / self.
std[0]
50 img[:, :, 1] = img[:, :, 1] / self.
std[1]
51 img[:, :, 2] = img[:, :, 2] / self.
std[2]