Tag: gpuimage

用于iOS的Luma Key(从图像创buildalpha蒙版)

我正在构build一个应用程序,允许用户将自己的图片上传到白色背景上,该应用程序将创build该人物的轮廓。 我很难找出背景。 我正在使用GPUImage框架,而GPUImageChromaKeyBlendFilter对于颜色非常适用,但是如果您使用白色/黑色,则很难将这些颜色中的一种颜色键入。 如果我把键设置为白色或黑色,它们的键都是一样的。 有什么build议?

在BlendModeFilter中使用ColorMatrix或HexColor – Android?

目前BlendModes(减法,排除等)使用LauncherImage作为掩码。 我可以将这些BlendModes应用于ColorMatrix吗? 我正在使用GPUImageLibrary colorMatrix[ 0.393, 0.7689999, 0.18899999, 0, 0, 0.349, 0.6859999, 0.16799999, 0, 0, 0.272, 0.5339999, 0.13099999, 0, 0, 0, 0, 0, 1, 0]; SubtractBlendFilter.java public class GPUImageSubtractBlendFilter extends GPUImageTwoInputFilter { public static final String SUBTRACT_BLEND_FRAGMENT_SHADER = "varying highp vec2 textureCoordinate;\n" + " varying highp vec2 textureCoordinate2;\n" + "\n" + " uniform sampler2D inputImageTexture;\n" + […]