Duotone
Duotone
First turn the picture to greyscale and keep only "light or dark" information; then set two colours, darkest in the dark, brightest in the brightest
Interactive demo: open this page in a JavaScript-enabled browser to drag the parameters and watch the live readouts.