Changed from exg = g1+g2-r-b to, exg = (g1+g2-r-b)/(g1+g2+r+b)