CITemperatureAndTint(CIFilter)的输入参数
我无法理解名为 CITemperatureAndTint 的 CIFilter 的输入参数。文档说它有两个输入参数,都是 2D CIVector。
我经常使用这个滤镜 - 通过实际代码、通过 Core Image Fun House(来自 Apple 的示例项目 - “FunHouse”)和通过 iPhoto。
我的直觉告诉我,这个过滤器应该有两个标量输入参数:一个用于温度,一个用于色调。如果您查看 iPhoto 的 UI,您会看到以下内容:
iPhotos 温度和色调 UI 的屏幕截图:
正如预期的那样:一个滑块用于温度,一个滑块用于色调。 苹果如何将每个滑块的值“绑定”到 2D-Vector? akaru 已经问过这个问题,但没有得到答案:CITemperatureAndTint 具有矢量输入怎么了?
I fail to understand the input parameters of the CIFilter named CITemperatureAndTint. The documentation says it has two input parameters which are both a 2D CIVector.
I played with this filter a lot - via actual code, via Core Image Fun House (example project from Apple - "FunHouse") and via iPhoto.
My intuition says that this filter should have two scalar input parameters: One for the temperature and one for the tint. If you look at the UI of iPhoto you see this:
Screenshot of iPhotos Temperature and Tint UI:
As expected: One slider for the temperature and one for the hue. How did apple "bind" the value of each slider to a 2D-Vector? akaru asked this question already but got no answer: What's up with CITemperatureAndTint having vector inputs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在苹果公司开了一个技术支持事件,并向他们提出了同样的问题。以下是苹果工程师的回答:
现在我必须弄清楚这个答案,但这似乎是苹果公司的一个非常好的回应。
I have opened a technical support incident at Apple and asked them the same question. Here is the answer from the Apple engineer:
Now I have to get my head around this answer but it seems to be a very good response from Apple.
它们应该是包含色温的 2D 矢量。默认值 (6500, 0) 将保持颜色不变,如所述 这里。您可以在此维基百科链接中查看哪些色温值可以提供哪些颜色。我不确定向量的第二个元素的用途。
They should be 2D vectors containing the color temperature. The default of (6500, 0) will leave the color unchanged, as described here. You can see what values for color temperature give you which colors in this wikipedia link. I'm not sure what the 2nd element of the vector is for.