ios - 如何在 iOS 应用程序中使用 Lightroom 预设作为照片或视频的滤镜?

标签 ios core-graphics gpuimage lightroom preset

如何通过 GPUImageCore Graphics 或通过 Lightroom Presets 中的任何其他框架将滤镜应用于图像。

如何在图像上单独使用 Lightroom 预设的元素(对比度、饱和度、色调、清晰度等)。

个别 Lightroom 预设元素:

enter image description here

最佳答案

不幸的是,这不是一件容易的事,因为要使用 Lightroom 预设作为滤镜,您需要制作 Lightroom 的自制子集。

1:用文本编辑器打开预设文件,看看Lightroom是用什么处理来达到这个效果的,是不是这样

value = {
        settings = {
            AutoLateralCA = 0,
            Blacks2012 = 49,
            BlueHue = 11,
            BlueSaturation = 4,
            CameraProfile = "Adobe Standard",
            ChromaticAberrationB = 0,
            ChromaticAberrationR = 0,
            Clarity2012 = 30,
            ColorNoiseReduction = 0,
            ColorNoiseReductionDetail = 50,
            ColorNoiseReductionSmoothness = 50,
            Contrast2012 = 13,
            ConvertToGrayscale = true,
            CropConstrainToWarp = 0,
            Defringe = 0,
            DefringeGreenAmount = 0,
            DefringeGreenHueHi = 60,
            DefringeGreenHueLo = 40,
            DefringePurpleAmount = 0,
            DefringePurpleHueHi = 70,
            DefringePurpleHueLo = 30,
            EnableCalibration = true,
            EnableCircularGradientBasedCorrections = true,
            EnableDetail = true,
            EnableEffects = true,
            EnableGradientBasedCorrections = true,
            EnableGrayscaleMix = true,
            EnableLensCorrections = true,
            EnableSplitToning = true,
            Exposure2012 = 0,
            GrainAmount = 0,
            GrainFrequency = 50,
            GrainSize = 25,
            GrayMixerAqua = 4,
            GrayMixerBlue = -14,
            GrayMixerGreen = -11,
            GrayMixerMagenta = 3,
            GrayMixerOrange = -3,
            GrayMixerPurple = 13,
            GrayMixerRed = 8,
            GrayMixerYellow = -6,
            GreenHue = 26,
            GreenSaturation = -1,
            Highlights2012 = -9,
            LensManualDistortionAmount = 0,
            LensProfileEnable = 0,
            LensProfileSetup = "LensDefaults",
            LuminanceNoiseReductionContrast = 0,
            LuminanceNoiseReductionDetail = 50,
            LuminanceSmoothing = 0,
            ParametricDarks = 8,
            ParametricHighlightSplit = 75,
            ParametricHighlights = 2,
            ParametricLights = 15,
            ParametricMidtoneSplit = 50,
            ParametricShadowSplit = 25,
            ParametricShadows = 9,
            PerspectiveAspect = 0,
            PerspectiveHorizontal = 0,
            PerspectiveRotate = 0,
            PerspectiveScale = 100,
            PerspectiveUpright = 0,
            PerspectiveVertical = 0,
            PostCropVignetteAmount = 0,
            PostCropVignetteFeather = 50,
            PostCropVignetteHighlightContrast = 0,
            PostCropVignetteMidpoint = 50,
            PostCropVignetteRoundness = 0,
            PostCropVignetteStyle = 1,
            ProcessVersion = "6.7",
            RedHue = 10,
            RedSaturation = -5,
            ShadowTint = 0,
            Shadows2012 = 37,
            SharpenDetail = 25,
            SharpenEdgeMasking = 0,
            SharpenRadius = 1,
            Sharpness = 0,
            SplitToningBalance = 0,
            SplitToningHighlightHue = 0,
            SplitToningHighlightSaturation = 0,
            SplitToningShadowHue = 0,
            SplitToningShadowSaturation = 0,
            ToneCurveName2012 = "Black-Mamba_FLP.co",
            ToneCurvePV2012 = {
                0,
                33,
                47,
                38,
                88,
                73,
                116,
                131,
                143,
                179,
                202,
                216,
                255,
                243,
            },
            ToneCurvePV2012Blue = {
                0,
                0,
                255,
                255,
            },
            ToneCurvePV2012Green = {
                0,
                0,
                255,
                255,
            },
            ToneCurvePV2012Red = {
                0,
                0,
                255,
                255,
            },
            VignetteAmount = -7,
            VignetteMidpoint = 46,
            WhiteBalance = "As Shot",
            Whites2012 = 23,
            orientation = "BC",
        },

2:实现 Lightroom 用于应用预设的所有方法,您可以使用像 this 这样的库在帮助中

3:你需要一种方法将所有预设设置重新映射为变量并应用过滤器

关于ios - 如何在 iOS 应用程序中使用 Lightroom 预设作为照片或视频的滤镜?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47553313/

相关文章:

ios - 将图像添加到 CAShapeLayer

iphone - 在drawRect :中部分绘制UIView的最有效方法

ios - 如何使用 GPUImage 实现 GPUImageMaskFilter

iOS生成随机消息

iOS UIView 3D 旋转和 subview

iOS - NSJSONSerialization 抛出一些非常奇怪的错误

ios - 在 EDK Marmalade 中使用 GPUImage

ios - NSString 和 NSData 是我可以插入到 KeyChain 中的唯一类型吗?

ios - Coregraphics (iOS) 中的内存管理

swift - GPUImage 输入 movieURL 输出 filteredMovieURL