How is a sepia tone created?

后端 未结 4 1052
独厮守ぢ
独厮守ぢ 2020-12-28 20:24

What are the basic operations needed to create a sepia tone? My reference point is the perl imagemagick library, so I can easily use any basic operation. I\'ve tried to quan

4条回答
  •  执笔经年
    2020-12-28 20:41

    Take a look at how it's implemented in the AForge.NET library, the C# code is here.

    The basics seem to be

    • transform it to the YIQ color space
    • modify it
    • transform back to RGB

    The full alrogithm is in the source code, plus the RGB -> YIQ and YIQ -> RGB transformations are explained.

提交回复
热议问题