↓
LUT, min(R, G, B)
Output 8 bit
Mux
Transmission Map (Min Array)
t = 255 - 0.95 ×dark
RGB565 input
LUT
J= (I-A)/t+A
Grayscale Output
by simo