作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
创建棕褐色调所需的基本操作是什么?我的引用点是 perl imagemagick 库,因此我可以轻松使用任何基本操作。我试图量化(使其成为灰度)、着色,然后增强图像,但它仍然有点模糊。
最佳答案
我的回答中提供了 C# 中的棕褐色转换器的示例代码:What is wrong with this sepia tone conversion algorithm?
算法来自this page ,每个输入像素颜色按以下方式转换:
outputRed = (inputRed * .393) + (inputGreen *.769) + (inputBlue * .189)
outputGreen = (inputRed * .349) + (inputGreen *.686) + (inputBlue * .168)
outputBlue = (inputRed * .272) + (inputGreen *.534) + (inputBlue * .131)
If any of these output values is greater than 255, you simply set it to 255. These specific values are the values for sepia tone that are recommended by Microsoft.
关于image-processing - 棕褐色调是如何产生的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1061093/
我正在尝试在以下之间创建渐变颜色: White (light to dark) Brown (dark to light Green (dark to ligh) 但我不知道如何实现。 我的尝试很糟糕
我是一名优秀的程序员,十分优秀!