fn levels(img: &mut Frame, inb: f64, inw: f64, gamma: f64, outb: f64, outw: f64)
Remap [in_black, in_white] onto [out_black, out_white] through gamma (v^(1/g), like Color).
gamma