gpuimage

How to Implement GPUImageMaskFilter using GPUImage

你离开我真会死。 提交于 2019-12-03 06:39:37
I need to Cut from the Full Image using the mask and created the masked Image. + = I tried the following: UIImage *imgMask = [UIImage imageNamed:@"Mask.png"]; UIImage *imgBgImage = [UIImage imageNamed:@"Full.png"]; GPUImageMaskFilter *maskingFilter = [[GPUImageMaskFilter alloc] init]; GPUImagePicture * maskGpuImage = [[GPUImagePicture alloc] initWithImage:imgMask ]; GPUImagePicture *FullGpuImage = [[GPUImagePicture alloc] initWithImage:imgBgImage ]; [maskGpuImage addTarget:maskingFilter]; [maskGpuImage processImage]; [maskingFilter useNextFrameForImageCapture]; [FullGpuImage addTarget

iOS 11 beta 4 presentRenderbuffer crash

人走茶凉 提交于 2019-12-03 04:14:52
问题 My app crashes on iOS 11 beta 4 (15A5327g) when [EAGLContext presentRenderbuffer:] method is called. It happens only when I debugging in Xcode. When I launch app manually it doesn't crashed. On versions lower than iOS 11 beta 4 it doesn't crashed as well. How can I prevent this issue? You can see crash details in screenshot 回答1: Hodge's workaround works. Here is a screenshot of how to set the GPU Frame Capture argument to "Disabled" (in "Edit Scheme" window) 回答2: I was experiencing this same

GPUImage Chroma Key filter

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use the GPUImage framework's chromakey filter. I followed the Filtershowcase example, but obviously I am missed something becuase it only shows the video, but no green screen keying out effect. Here's my initialization of video camera/filter: camera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]; camera.outputImageOrientation = UIInterfaceOrientationLandscapeLeft; camera.horizontallyMirrorFrontFacingCamera = NO; camera

GPUimage port for android

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Has anyone ported this to android yet? More the framework than the shaders. Stuff like bringing camera data into openGL . I have worked with it on iOS and it is very fast. Any help is much appreciated. 回答1: GPUImage for Android Idea from: iOS GPUImage framework Goal is to have something as similar to GPUImage as possible. Vertex and fragment shaders are exactly the same. That way it makes it easier to port filters from GPUImage iOS to Android. The link is below: This lib is implemented using Android OpenGL ES 2.0 回答2: you can use Gpuimage

GPUImage blend filters

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to apply a blend filters to 2 images. I've recently updated GPUImage to the last version. To make things simple I've modified the example SimpleImageFilter. Here is the code: UIImage * image1 = [ UIImage imageNamed :@ "PGSImage_0000.jpg" ]; UIImage * image2 = [ UIImage imageNamed :@ "PGSImage_0001.jpg" ]; twoinputFilter = [[ GPUImageColorBurnBlendFilter alloc ] init ]; sourcePicture1 = [[ GPUImagePicture alloc ] initWithImage : image1 ]; sourcePicture2 = [[ GPUImagePicture alloc ] initWithImage : image2 ]; [

Create Sketch effect to photos using Brad Larson GPUImage in Obj C

こ雲淡風輕ζ 提交于 2019-12-03 00:43:42
Hi I would like to try sketch effect on photos using Brad Larson's GPUImage sdk in iOS . I am trying to create sketch effect like this But the sketch effect i get is like this I am using GPUImageSketchFilter to create this effect, Following are the parameters I provide to achieve this effect: setTexelHeight:(1.12 / 480.0) setTexelWidth:(0.5 / 320.0) Please suggest me how to achieve this effect.. Brad going by your suggestions, i have got this... My Objective: I need to make the right image look like the left one.. Pls suggest me..!! Theres some information regarding the problem you are facing.

GPUimage port for android

牧云@^-^@ 提交于 2019-12-02 21:35:59
Has anyone ported this to android yet? More the framework than the shaders. Stuff like bringing camera data into openGL . I have worked with it on iOS and it is very fast. Any help is much appreciated. vanloi999 GPUImage for Android Idea from: iOS GPUImage framework Goal is to have something as similar to GPUImage as possible. Vertex and fragment shaders are exactly the same. That way it makes it easier to port filters from GPUImage iOS to Android. The link is below: This lib is implemented using Android OpenGL ES 2.0 you can use Gpuimage for video preview and take picture also, just compile

数字图像处理、拼接,图像静态滤镜(GPUImage/GPU加速)

岁酱吖の 提交于 2019-12-02 14:53:01
图像滤镜处理的两种方式:RGB点乘运算;GPU的矩阵运算(效率更高)。图片处理中的计算:RGBA~利用自带的方法修改色调,饱和度,亮度来修改图片;矩阵~利用矩阵计算得到新的矩阵修改图片。 几个图像像素数据处理过程中的几个知识点:像素格式,图像拉伸,YUV像素取值范围,色域。 快手、美拍、Instagram、OPPO/ViVO 等。 既然是图像处理,那么滤镜的操作就主要是:卷积、像素映射、坐标映射,反映到具体效果上,就是模糊锐化,覆盖层(贴纸等),RGB曲线调整,旋转缩放扭曲之类的。滤镜本质就是像素点的坐标和颜色的变化。 滤镜原理:ios通过颜色矩阵(ColorMatrix)和坐标变换矩阵(Matrix)可以完美的做出上面的所说的效果。视频滤镜,都是对视频中的图像帧进行操作来改变光影和色彩。 美颜有两步,一个是磨皮,一个是美白,要想正确美颜,所以还需要加上人脸识别技术和皮肤识别技术。 滤镜,图形变换处理核心是拿到纹理对象的rgb做算法处理. 【Android】自动瘦脸与眼睛放大美颜算法(shader)- https://blog.csdn.net/Taily_Duan/article/details/67636041 > 图像滤镜 基本滤镜效果的实现:如果我们用ColorMatrix调整RGB三种颜色的比重,就可以实现诸如单色、黑白的效果。Lomo滤镜效果的实现:改变图像数值+遮罩

Change brightness of an image via uislider and gpuimage filter

半世苍凉 提交于 2019-12-02 10:22:00
I wrote this code to change the brightness of an UIImage via an UISlider and the GPUImageBrightnessFilter. But every time I'll test it the app crashes. My code: - (IBAction)sliderBrightness:(id)sender { CGFloat midpoint = [(UISlider *)sender value]; [(GPUImageTiltShiftFilter *)brightnessFilter setTopFocusLevel:midpoint - 0.1]; [(GPUImageTiltShiftFilter *)brightnessFilter setBottomFocusLevel:midpoint + 0.1]; [sourcePicture processImage]; } - (void) brightnessFilter { UIImage *inputImage = imgView.image; sourcePicture = [[GPUImagePicture alloc] initWithImage:inputImage smoothlyScaleOutput:YES];

Filtering video with GPUImage

半腔热情 提交于 2019-12-02 09:25:29
问题 I'm using GPUImage in my application and trying to filter video. Live video filtering is working well. The trouble comes up when I try to read a video into memory from the filesystem and apply filters using the code posted on the sunsetlakessoftware tutorial page and in the SimpleVideoFileFilter demo. EDIT : I realized that my original post may not have been posing a specific enough question. What I am asking is: How exactly can I read a video from disk into memory, apply a GPUImageFilter,