ios - iOS Core Image Filters Exposure、Hue、Sepia、Temparature、Tint、Vignette 的值范围

标签 ios core-image imagefilter

我想知道在 iOS 中关注 CIFilter 的值范围。我从不同的地方发现了以下值。他们正确吗?非常感谢能在一个地方找到所有引用资料?

CIExposureAdjust - inputEV (-10.0f - 10.0f)
CIHueAdjust - inputAngle (-180.0f - 180.0f converted to Radians)
CISepiaTone - inputIntensity (0.0f - 1.0f)
CITemperatureAndTint - inputNeutral
CITemperatureAndTint - inputTargetNeutral
CIVignette - inputRadius
CIVignette - inputIntensity

最佳答案

您可以查询输入以获得它们的范围。有些是无限的,有些有最小值和最大值。 documentation描述如何这样做:

Filter names and attributes provide all the information you need to build a user interface that allows users to choose a filter and control its input parameters. The attributes for a filter tell you how many input parameters the filter has, the parameter names, the data type, and the minimum, maximum, and default values.

关于ios - iOS Core Image Filters Exposure、Hue、Sepia、Temparature、Tint、Vignette 的值范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22704372/

相关文章:

PHP/GD : Better Gaussian blur

ios - 核心数据 - 如何通过一个属性获取所有相关对象

android - 为 Socket 设备设置声音配置

iOS 12 CIKernel 过滤器崩溃

python - 在 Python 中使用 Nan 对图像进行高斯滤波

arrays - 您可以为 C 中的二维数组的 struct 中的所有元素赋值吗?

ios - 使用 FCM 的 ios 中不显示远程通知

ios - IOS设备上Unity WEBGL中的音频

ios - Core Image - 切换颜色透明

iphone - 使用 Core Image 过滤器时增加 CFData 内存使用量