Algorithm 2.
Input: xI − Input Image to be filtered (xLTO or xTV) |
xGI − Guidance Image (xLBP) |
w − Radius of the Window (patch size) |
∊, α, β − Regularization Parameters |
Output xF − Output Image |
meanxGI = gmean(xGI); meanxI = gmean(xI) |
corrxGI = gmean(xGI. * xGI); corrxGI−I = gmean(xGI. * xI) |
varxGI = corrxGI − meanxGI. * meanxGI; covxGI−I = corrxGI−I − meanxGI. * meanxI |
a = (covxGI−I./(varxGI + ∊))α; b = meanxI − β * a. * meanxGI |
meanb = gmean(b); meana = gmean(a) |
xF = meana. * xGI + meanb |