Skip to main content
. 2016 Jun 7;16(6):832. doi: 10.3390/s16060832
Algorithm 2: (Variable Exponent Functional Retinex)
Input: Image I
Transform into log domain i=log(I+1);
Initialization: l0=i, b0=0, t0=0 and k=0
While ||lklk-1||||lk||ε
  (1) Given bk and tk, update lk+1 by solving Equation (8).
  (2)Given lk+1 and tk, update bk+1 by using algorithm 1.
  (3)Update tk+1=tk+lk+1bk+1.
  (4) lk+1=max{lk+1,i};
  (5)k=k+1;
End
Output: Image R=exp(i)exp(l)