0
这个过滤器结合了一个颜色矩阵和它的逆,所以为什么这不会退回原始图像呢? [它转换成YIQ并回到RGB]。相反,它会给出一些带有一些微红色伪像的灰度图像)。这在firefox,safari和IE10上是一样的,所以我认为这是我的错,而不是bug。SVG feColorMatrix +其反转不回原始图像
<filter id="matrixtest" filterUnits="userSpaceOnUse" x="-10" y="-10" width="340" height="220">
<feColorMatrix in="SourceGraphic" result="YIQ" values="0.299 0.587 0.114 0 0 0.596 -0.274 -0.321 0 0 0.211 -0.523 0.311 0 0 0 0 0 1 0"/>
<feColorMatrix in="YIQ" result="RGB" type="matrix" values="1 0.956 0.621 0 0 1 -0.272 -0.647 0 0 1 -1.107 1.705 0 0 0 0 0 1 0"/>
</filter>