User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
isp:automatic_white_balance [2019/05/09 00:38] – [Collect statistical data set] Igor Yefmovisp:automatic_white_balance [2019/05/09 00:41] – [Calculate color properties] Igor Yefmov
Line 44: Line 44:
 ==== Calculate color properties ==== ==== Calculate color properties ====
  
-Now that we have our data set we can figure out what our picture looks like from the color balance point of view. For that we just calculate the average values of ''U'' and ''V''. The simplest approach is to calculate the [[https://en.wikipedia.org/wiki/Mean#Arithmetic_mean_(AM)|arithmetic mean]] value, but other formulae may provide more accurate results.+Now that we have our data set we can figure out what our picture looks like from the color balance point of view. For that we just calculate the average values of \(U\) and \(V\). The simplest approach is to calculate the [[https://en.wikipedia.org/wiki/Mean#Arithmetic_mean_(AM)|arithmetic mean]] value, but other formulae may provide more accurate results.
  
 At the end of this step we have the following 3 sets of numbers: At the end of this step we have the following 3 sets of numbers:
-  - "Main results" are the averages of ''U'' and ''V'' - these tell us how far off the picture is from being considered to be the "grey world" +  - "Main results" are the averages of \(U\) and \(V\) - these tell us how far off the picture is from being considered to be the "grey world" 
-  - Calculate the "average" ''R''''G'', and ''B'' values from ''U'' and ''V''+  - Calculate the "average" \(R\)\(G\), and \(B\) values from \(U\) and \(V\)
-    - Use the ''Y'' from [[#Collect statistical data set|previous step]] (if it was collected) or just go with the value of ''100'' which is hopefully a good representation of a well-adjusted overall brightness +    - Use the \(Y\) from [[#Collect statistical data set|previous step]] (if it was collected) or just go with the value of \(100\) which is hopefully a good representation of a well-adjusted overall brightness 
-  - Calculate the two ratios that represent how far off the ''Red'' and ''Blue'' colors are from the ''Green''((we use a fixed value of ''Green'' and never adjust it for color normalization)). Those ratios are ''R/G'' and ''B/G''+  - Calculate the two ratios that represent how far off the ''Red'' and ''Blue'' colors are from the ''Green''((we use a fixed value of ''Green'' and never adjust it for color normalization)). Those ratios are \(\frac{R}{G}\) and \(\frac{B}{G}\)
  
 ==== Figure out the adjustment ==== ==== Figure out the adjustment ====

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information