Write a program to evaluate the errors that are introduced by using nonlinear instead of linear color components for grayscale conversion. To do this, compute the difference between the Y values obtained with the linear variant (Eqn. (6.16)) and the non-linear variant (Eqn. (6.17) with w R = 0.309, w G = 0.609, w B = 0.082) for all possible 224 RGB colors. Let you program return the maximum gray value difference and the sum of the absolute differences for all colors.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here