gpuimage

Transparent GPUImageView?

倖福魔咒の 提交于 2019-12-05 04:31:29
I am using a GPUImageView inside my iOS application. I want that the GPUImageView have a transparent background. I tried setBackground:[UIColor clearColor] It does not work. Any workarounds? Regards I found you need to set both of these to get a transparent background. Neither works alone. strengthPreviewImageView.backgroundColor = [UIColor clearColor]; [strengthPreviewImageView setBackgroundColorRed:0 green:0 blue:0 alpha:0]; ...Did you try the method from the GPUImageView header? - (void)setBackgroundColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent

How can i get UIImage from GPUImageView

一笑奈何 提交于 2019-12-04 23:56:54
问题 I am using GPUImageView library in my project where it is using GPUImageView and i have added filters like contrast and other image effects like sepia etc on that GPUImageView , everything is good but problem is now i want to convert that GPUImageVIew into UIImage so that i can extract the image out of that UIImage and post that image on Facebook , but i am not able to do that the image which is getting post on facebook is simple camera captured image without special effects which i added

GPUImage group filters

半腔热情 提交于 2019-12-04 19:42:06
I am trying to implement brightness,contrast and exposure filters in a single view same as you see in iPhoto app. I have tried to put up group filter for doing the same. But it shows up a white screen instead of modified picture. Here is the code I applied. GPUImageFilterGroup *groupFilter = [[GPUImageFilterGroup alloc]init]; GPUImageBrightnessFilter *brightnessFilter = [[GPUImageBrightnessFilter alloc]init]; [brightnessFilter setBrightness:brightnessValue]; GPUImageContrastFilter *contrastFilter = [[GPUImageContrastFilter alloc]init]; [contrastFilter setContrast:contrastValue];

GPUImage animated gaussian blur filter

岁酱吖の 提交于 2019-12-04 16:45:55
I was using the GPUImage gaussian blur filter to blur a still image. I want to tie the blur size to an UI element and as the element is changed by the user I blur the picture. The way I am doing it right now is to change the blurSize when there has been a significant (> 0.25) change, reapply the filter and animate the new image into the imageView. Is there a more efficient way for me to be doing this? On the iPhone 5, while performance is not laggy, it is not super smooth either (but perhaps that is because this operation is simply too expensive to be super smooth). interesting question. Your

GPUImage create a custom Filter that change selected colors

扶醉桌前 提交于 2019-12-04 14:48:45
Using the amazing GPU image framework, I'm trying to create a custom filter using a custom fragment shader that passed some color vectors as uniforms, elaborate each fragment substituting a choosen color with one in the uniform. I made that using Quartz and it works, but since I'm moving my first step in OpenGL world using this framework, I'd like to give a try to the GPU processing. The fragment shader I made seems to work fine, but there is a problem in the output. I post just a sample for debugging porpoise varying highp vec2 textureCoordinate; uniform sampler2D inputImageTexture; bool

How do I write a 1bpp tiff with libtiff on iOS?

女生的网名这么多〃 提交于 2019-12-04 14:33:09
问题 I'm trying to write a UIImage out as a tiff using libtiff. The problem is that even though I'm writing it as 1 bit per pixel, the files are still coming out in the 2-5MB range when I'm expecting something more like 100k or less. Here's what I've got. - (void) convertUIImage:(UIImage *)uiImage toTiff:(NSString *)file withThreshold:(float)threshold { TIFF *tiff; if ((tiff = TIFFOpen([file UTF8String], "w")) == NULL) { [[[UIAlertView alloc] initWithTitle:@"Error" message:[NSString

How to Record video with GPUImage?

試著忘記壹切 提交于 2019-12-04 13:59:14
问题 i used https://github.com/CyberAgent/android-gpuimage but its just save images. how to record video using GLSurfaceview? 回答1: android-gpuimage library does not support video recording but you can try using the android-gpuimage-videorecording library. It is a fork of the gpu-image for android that provides also the video recording functionality android-gpuimage-videorecording see the GPUImageMovieWriter class It should point you in the right direction for developing your own video writer on

How to use GPUImageLookupFilter without GPUImageFilterGroup?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 13:21:18
I have a problem with understanding GPUImage. Specifically, I can't figure out how to use GPUImageLookupFilter. I have several examples of usage in GPUImageAmatorkaFilter for example. But LookupFilter used there within GPUImageFilterGroup which I didn't understood yet either. I wonder whether I can use LookupFilter alone. I've tried this: GPUImageLookupFilter *lookup = [[GPUImageLookupFilter alloc] init]; UIImage *image = [UIImage imageNamed:@"amatorka.png"]; GPUImagePicture *lookupImageSource = [[GPUImagePicture alloc] initWithImage:image]; [lookupImageSource addTarget: lookup

Add overlay while record video on Android

独自空忆成欢 提交于 2019-12-04 09:42:00
I want to record video by camera in my Android device. I need to add overlay image over recorded movie. In iOS I would use GPUImage . In Android I found Android GPUImage . I tried to use it but I didn't found any way to add any filter while video recording. In provided example I could add filters only for taking photos. Is there any ways to record video with filters with Android GPUImage ? Is there any other ways to add images overlay over recording video in realtime? If not, is there any ways to add images overlay over recorded video in postprocessing? You can add an overlay image on video

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

那年仲夏 提交于 2019-12-04 09:00:36
问题 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