Smooth Hue Transition Interpolation in Logarithmic
Exposure Space
-
Again, for convenience, figure 1 is duplicated here
-
Interpolation of green pixels : same as in
bilinear interpolation. Also note interpolation of green pixels has to
be done before interpolations of red/blue pixels.
-
Key step : After the green pixel interpolations are performed, transfer
the original pixel data together with the interpolated green pixel values
from linear exposure space into logarithmic exposure space. Let's denote
these log values ad Glog, Blog and Rlog,
respectively.
-
Interpolation of red/blue
pixels in log space :
-
In logarithmic space, define blue "hue value"
as : Blog- Glog . And red "hue
value" can be analogously defined.
-
Considering the interpolation of blue pixel
values : there are three different cases of blue pixel value interpolations.
-
estimating blue pixel value at the green position and the adjacent blue
pixels are on left and right : e.g. B7log = G7log
+ (B6log - G6log + B8log -
G8log) / 2
-
estimating blue pixel value at the green position and the adjacent blue
pixels are on top and bottom : e.g. B13log = G13log
+ (B8log - G8log + B18log - G18log)
/ 2
-
estimating blue pixel value at the red postion : e.g. B12log
= G12log + (B6log - G6log + B8log
- G8log + B16log - G16log + B18log
- G18log) / 4
-
Interpolation of red pixel values can be carried
out analogously
-
Finally, transfer the all pixel values back into linear exposure space
-
For reference, refer to [3][11][13]