'inputEV'的含义

时间:2016-07-03 14:39:45

标签: ios image cifilter

CIFilter'CIExposureAdjust'中使用的键名'inputEV'的含义是什么?

例如:

    CIFilter *exposureFilter = [CIFilter filterWithName:@"CIExposureAdjust"];
    [exposureFilter setValue:outputImage forKey:kCIInputImageKey];
    [exposureFilter setValue:[NSNumber numberWithFloat:5] forKey:@"inputEV"];
    CIImage *outputImage = [exposureFilter valueForKey:kCIOutputImageKey];

1 个答案:

答案 0 :(得分:1)

它是曝光值,根据文档:

  

此滤镜将颜色值乘以如下所示进行模拟   曝光按指定的F挡点改变:

     

s.rgb * pow(2.0, ev)