core-image Questions

1

What APIs do I need to use, and what precautions do I need to take, when writing to an IOSurface in an XPC process that is also being used as the backing store for an MTLTexture in the main applica...
Kelly asked 3/2, 2019 at 15:46

0

I tried to combine a SKEffectNode with a CIFilter and a child SKSpriteNode and while its seems to work for a few moments, the result is that all device memory is consumed and my iPad Retina (A7 GPU...
Atrioventricular asked 30/1, 2019 at 0:50

1

I have a CVPixelBuffer that I'm trying to efficiently draw on screen. The not-efficient way of turning into an NSImage works but is very slow, dropping about 40% of my frames. Therefore, I've tri...
Beardless asked 19/9, 2017 at 12:48

1

This code sample was working in a macOS playground: import Cocoa import XCPlayground func getResImg(name: String, ext: String) -> CIImage { guard let fileURL = Bundle.main.url(forResource: n...
Birchard asked 6/6, 2018 at 14:29

1

Solved

While trying to apply a simple vignette filter to the raw camera feed of an iPhone6, with the help of Metal and Core Image, I see a lot of lag between the frames being processed and rendered in an ...
Crease asked 22/12, 2018 at 19:39

2

Solved

I am fighting with an internal caching (about 90 MB for 15 mp image ) in CGContextDrawImage/CGDataProviderCopyData functions. Here is the stack-trace in profiler: In all cases, IOSurface is cre...
Setup asked 9/11, 2018 at 11:35

2

I'm using the following code to remove green background from an image.But the edges of the image has green tint to it and some pixels are damaged.How can i smoothen this and make the cut out perfec...
Roslyn asked 16/11, 2018 at 3:9

3

Is it possible to process(filter) HDR images through Core Image? I couldn't find much documentation on this, so I was wondering if someone possibly had an answer to it. I do know that it is possibl...
Peppercorn asked 16/8, 2016 at 6:23

2

Solved

I'm trying to apply a radial blur to my UIImageView but when I try this I get the error [UIImage extent]: unrecognized selector sent to instance The code I'm using is from the example on: http...
Argumentative asked 9/11, 2018 at 14:12

2

Solved

I'm building this for iOS using Swift — either via CoreImage or GPUImage, but if I can build it in Python or Node/JavaScript, that'd work too. Feel free to answer abstractly, or in a different lang...

3

I have temporary variable tmpPixelBuffer with pixel buffer data, which is not nil, and when metadata objects are detected I want to create image from that buffer, so I could crop metadata images fr...
Inept asked 31/3, 2015 at 18:8

0

I have following that works fine on iOS 11: let ciContext = CIContext(options: [kCIContextWorkingFormat : kCIFormatRGBAh]) var outputImage : CIImage let mainImage = CIImage(data: jpegData) let ...
Malta asked 21/7, 2018 at 19:19

2

Im generating image with strip lines using CoreImage framework and the output seems to have improper edges as shown in the below image. Code I have used is as below. fileprivate func generateImag...
Negative asked 28/6, 2018 at 6:17

4

I'm recording video and audio using AVCaptureVideoDataOutput and AVCaptureAudioDataOutput and in the captureOutput:didOutputSampleBuffer:fromConnection: delegate method, I want to draw text onto ea...
Goring asked 3/6, 2015 at 1:16

8

Solved

I'm trying to get CIImage from ImageView that display on the screen. UIImage *image = myImageView.image; convert image UIImage to CIImage. CIImage *cImage = [....]; How to do this?
Bernardabernardi asked 8/12, 2011 at 3:10

3

Solved

Thanks for looking. Here's my code CIImage *result = _vignette.outputImage; self.mainImageView.image = nil; //self.mainImageView.contentMode = UIViewContentModeScaleAspectFit; self.mainImageView...
Furor asked 8/4, 2013 at 11:37

1

What's the difference between CVImageBuffer which is returned by CMSampleBufferGetmageBuffer and CVPixelBuffer? I just want to retrieve the image planes (RGBA) but I can't figure out how to retriev...
Ahl asked 30/3, 2018 at 4:55

1

Solved

I'm building a real-time photo editor based on CIFilters and MetalKit. But I'm running into an issue with displaying wide gamut images in a MTKView. Standard sRGB images display just fine, but Dis...
Wayzgoose asked 25/7, 2017 at 6:40

3

Solved

I’m using CISourceOverCompositing to overlay text on top of an image and I’m getting unexpected results when the text image is not fully opaque. Dark colors are not dark enough and light colors are...
Peepul asked 25/2, 2018 at 0:59

1

Solved

I want to implement an image downscaling algorithm for iOS. After reading that Core Images's CILanczosScaleTransform was a great fit for it, I implemented it the following way: public func resizeI...
Potboy asked 7/3, 2018 at 8:19

2

I have two CIFilters, exposure and hue. I need to combine the filters over one UIImage. How should i go about this? Below is some code that i have so far... CIFilter *hueFilter; CIFilter *exposure...
Population asked 26/12, 2013 at 1:43

1

I record video (.mp4 file) using AVAssetWriter with CMSampleBuffer data (from video, audio inputs). While recording I want to process frames, I'm converting CMSampleBuffer to CIImage and processi...
Shuma asked 1/3, 2018 at 15:51

2

I'm trying to resize a CVPixelBuffer to a size of 128x128. I'm working with one that is 750x750. I'm currently using the CVPixelBuffer to create a new CGImage, which I resize then convert back into...
Marquittamarr asked 12/6, 2017 at 22:1

2

Solved

How do you subclass CIFilter now? In Swift 3 I could do this as a simple example: class CustomFilter: CIFilter { var inputImage: CIImage? var inputOrigin: CIVector? var inputAnotherVar: String? ...
Cristophercristy asked 22/9, 2017 at 3:33

1

Solved

I'm trying to add a watermark/logo on a video that I'm recording using AVFoundation's AVCaptureVideoDataOutput.The problem I'm having is that the transparent parts of the UIImage are black once wri...
Kliber asked 30/11, 2017 at 14:47

© 2022 - 2024 — McMap. All rights reserved.