Good time to all. Interesting is the sepia filter algorithm for the bmp file. As I understand it is necessary to translate RGB into the YCbCr palette and then what are my actions?

  • No conversion is needed, judging by what is written on the Internet, sepia can be implemented in RGB. - Vladimir Martyanov

1 answer 1

outputRed = (inputRed * .393) + (inputGreen *.769) + (inputBlue * .189) outputGreen = (inputRed * .349) + (inputGreen *.686) + (inputBlue * .168) outputBlue = (inputRed * .272) + (inputGreen *.534) + (inputBlue * .131) 

Source - http://www.techrepublic.com/blog/how-do-i/how-do-i-convert-images-to-grayscale-and-sepia-tone-using-c/

  • one
    By the way, the light areas fill up very blue - KappaPolice
  • one
    I think you can twist the coefficients and adjust the result. - Vladimir Martyanov