Start one-pass attempt branch
it's sort of working!
update histograms as we go.
when adjusting histogram, make sure target color exists so as not to introduce new colors.

this is only done on a per-channel basis.  it might work even better
to combine the channels.
remove row scan overlap for better results and performance.
add interactive
fix bgr/rgb color issue