I'm writing a halftone algorithm, which takes standards RGB intensities in the range of $0-255$ and outputs black and white elements with a corresponding size ratio.
Should I apply a gamma expansion on the input luminance to get the ratio?
I.e. is it correct to do the following?
$\frac{w_\text{white}}{w_\text{white}+w_\text{black}} = (0.299 R + 0.587 G + 0.114 B)^{2.2}$
Should I apply the exponent of $2.2$?