core-image Questions
1
I have CVPixelBufferRef from an AVAsset. I'm trying to apply a CIFilter to it. I use these lines:
CVPixelBufferRef pixelBuffer = ...
CVPixelBufferRef newPixelBuffer = // empty pixel buffer to fill...
Cryptogam asked 30/4, 2015 at 12:24
1
Solved
I'm working on a simple MacOS command-line application in Swift. I created a custom CoreImage filter and having troubles to use it. The code compiles just fine but when it runs it exits with the fo...
Banc asked 4/10, 2017 at 13:24
1
I have received a CMSampleBufferRef from a system API that contains CVPixelBufferRefs that are not RGBA (linear pixels). The buffer contains planar pixels (such as 420f aka kCVPixelFormatType_420Yp...
Jink asked 2/10, 2017 at 11:44
0
I am reading sample buffers from an iOS AVCaptureSesion, performing some simple image manipulation on them, and then analyzing pixels from the resulting images. I have done this using openCV for th...
Kelsiekelso asked 19/9, 2017 at 3:27
3
Solved
I want to blur my view, and I use this code:
//Get a UIImage from the UIView
NSLog(@"blur capture");
UIGraphicsBeginImageContext(BlurContrainerView.frame.size);
[self.view.layer renderInC...
Cynde asked 11/12, 2013 at 23:14
2
My app is crashing when I attempt to apply a filter to my user-selected UIImage (It has been working fine without applying the filter). I added and imported the "CoreImage" framework to my project ...
Capybara asked 26/5, 2014 at 7:42
3
Solved
I have a UIImage which is loaded from a CIImage with:
tempImage = [UIImage imageWithCIImage:ciImage];
The problem is I need to crop tempImage to a specific CGRect and the only way I know how to d...
Applecart asked 18/1, 2013 at 15:44
1
Solved
I am new to swift and trying to build a camera app which can apply real-time filters, and save with the applied filters.
So far i can preview real-time with the applied filters, but when i save t...
Receivership asked 18/7, 2017 at 16:18
2
Solved
I'm working with a CIImage, and while I understand it's not a linear image, it does hold some data.
My question is whether or not a CIImage's extent property returns pixels or points? According to...
Extraterritorial asked 28/3, 2017 at 23:52
4
Solved
I'm trying to implement the built-in iOS 5 face detection API. I'm using an instance of UIImagePickerController to allow the user to take a photo and then I'm trying to use CIDetector to detect fac...
Inevitable asked 24/5, 2012 at 22:32
0
I'm using
ciContext.render(overlayImg, to: pixelBuffer, bounds: bufferFrame, colorSpace: nil)
where overlayImg is an image with transparent areas. Pre-iOS10 this worked as expected, but since iO...
Fresnel asked 9/3, 2017 at 12:31
2
Solved
Im having a trouble with Core image. what I'm doing is getting an image from a UIImageView and then use some code i found in tutorials (I'm new to core Image) but then I want to put the sepia image...
Lam asked 22/6, 2012 at 0:15
8
Solved
I am using Core Image and would like to produce a black and white effect on the chosen image.
Ideally I would like to have access to the same sort of options that are available on Photoshop i.e. ...
Gesture asked 5/4, 2012 at 14:34
2
EDIT found this code that helped with front camera images http://blog.logichigh.com/2008/06/05/uiimage-fix/
Hope others have had a similar issue and can help me out. Haven't found a solution yet. ...
Cameliacamella asked 17/10, 2012 at 13:38
1
Solved
In my project I need to convert images of any format to progressive JPEG. How can I achieve that?
I tried like this but it does not work.
let sourceImage = UIImage(named: "example.jpg")
let paths...
Camillacamille asked 26/8, 2016 at 14:50
1
Solved
I have the following code which turns a CGImage into NSData:
import Foundation
import CoreGraphics
import ImageIO
// ... snip ...
let data = NSMutableData()
if let dest = CGImageDestinationCreat...
Leech asked 12/8, 2016 at 11:5
2
Solved
Introduction
I'm interested in writing a function that outputs for me the next level in a Gaussian Pyramid(I eventually want to get to creating a Laplacian Pyramid) for use in image processing. (L...
Gusgusba asked 1/7, 2016 at 19:33
0
I am getting exc_bad_access on the line CIContext *context = [CIContext contextWithOptions:nil];
I have enabled zombies and checked with instruments: No luck.
The full code is:
- (UIImage *) doB...
Vise asked 20/7, 2016 at 17:52
2
Solved
What are the major differences between the Core Image and GPUImage frameworks (besides GPUImage being open source)? At a glance their interfaces seem pretty similar... Applying a series of filters ...
Bagpipes asked 11/6, 2014 at 0:55
1
Solved
My app allows users to edit photos using the Photos framework. I am seeing some crash reports, and it appears the crash occurs when generating the output image, but I am not sure where the problem ...
Infliction asked 14/11, 2015 at 4:26
3
Solved
I am trying to convert a pixelBuffer extracted from AVPlayerItemVideoOutput to CIImage but always getting nil.
The Code
if([videoOutput_ hasNewPixelBufferForItemTime:player_.internalPlayer.curren...
Retool asked 9/3, 2013 at 22:15
1
Solved
I want to blur the whole screen of my iOS app, and I can't use UIBlurEffect because I want to be able to control the blurriness. So I'm trying to use CIGaussianBlur, but I'm having trouble with the...
Ellene asked 23/1, 2016 at 13:27
2
Solved
I'm trying to add a blur effect on a overlay on a map. I actually need the blur effect over a circle on the over the map, the method I use to get that is not that important.
I have a class that ex...
Simard asked 21/10, 2015 at 16:3
1
Solved
I'm using CoreImage to detect faces on pictures. It works great on the simulator, but on my iphone 5, it almost never works with pictures taken with the iphone's camera ( it works with pictures pic...
Chas asked 4/8, 2015 at 17:49
4
Solved
I want to use in my app an custom filter. Now I know that I need to use Core Image framework, but i not sure that is right way.
Core Image framework uses for Mac OS and in iOS 5.0 - I'm not sure th...
Frear asked 17/1, 2012 at 14:3
© 2022 - 2024 — McMap. All rights reserved.