4 ms·
Actually, now that I think about it, if the only goal is to decide on black or white text, steps 3–4 aren't really necessary. Just undo the gamma compression (1
by jacobolus 16y ago
Actually, now that I think about it, if the only goal is to decide on black or white text, steps 3–4 aren't really necessary. Just undo the gamma compression (1), take a weighted sum or linear RGB intensities (2), and then pick a cut-off for Y of 18% or 18.4% (or whatever you prefer), about at mid gray.