We do two experiments to test Gray World algorithm:
We take the following steps for the above two experiments to test Gray World algorithm:
1. Read in the input images, and convert them to RGB if they are not.
2. Take R, G, & B values of the input images to run the
function for Gray World algorithm and get the R, G & B results.
3. Write the results to the output images.
| Stanford Tower without bright patch |
Stanford Tower with bright patch |
|
|
|
|
|
|
|
|
|
|
|
|
As we can see, since Gray World algorithm scales the R, G & B values of the input images
by the average of R, G & B values relative to the average of gray value, adding a bright
patch does not bring in any visible difference comparing to the output image
without the bright patch.
trek@alumni.stanford.edu
lihui@leland.stanford.edu