algorithm - What is the word for colorizing grayscale bitmap -


i have task of converting grayscale (8 bit, 256 levels of gray) bitmap colored one, function looks this:

function colorize(bmp, colora, colorb) 

in end black pixels become colora, , black pixels become colorb, , grayscale pixels mix of , b.

my question is: there word this? want search solutions, without proper terminology lost in search engine results.

color interpolation appropriate term problem.

in simplest case can make linear interpolation every r,g,b color.

if more fine , smooth gradient needed, consider interpolation in color spaces


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -