|
Algorithm 2 Reinhard Color Normalization |
-
Input:
Source image in RGB, Target image in RGB
-
Output:
Normalized source image in RGB
-
1:
Convert from RGB to Lab color space to get
-
2:
Convert from RGB to Lab color space to get
-
3:
Compute mean , , and standard deviation , , of
-
4:
Compute mean , , and standard deviation , , of
-
5:
for each channel do
-
6:
Subtract mean from source:
-
7:
Scale by standard deviation ratio:
-
8:
Add target mean:
-
9:
end for
-
10:
Merge normalized channels to get Lab image
-
11:
Convert from Lab to RGB color space
|