core-image Questions

3

I'm trying to add some color correction to images in my Mac app using Core Image filters. First, I'm looking at allowing a custom white-balance, to remove a cast from an image. It looked like the C...
Gallfly asked 21/5, 2015 at 1:9

3

Solved

I have researched all over in order to find a kernel that performs adaptive thresholding on iOS. Unfortunately I do not understand the kernel language or the logic behind it. Below, I have found a ...
Ambulant asked 23/3, 2016 at 16:55

3

I have an image with a-lot of exif informations. But when trying to read the exif information with swift, it shows limited number of exif information. I have tried following code: let data = UI...
Octroi asked 29/5, 2018 at 10:56

2

Solved

I am working with the Photos framework and have created an app that will apply a filter to an image. Now instead of applying a filter, I want to add text on top of the image. This API provides me w...
Dorie asked 1/9, 2014 at 23:46

4

Solved

I need to apply a CIGaussianBlur filter only on a small part of an image like this: Is there any way to do this? For example when I apply the filter perhaps I think that I have to specify the di...
Argumentative asked 26/8, 2015 at 9:56

2

Solved

I'm using CICrop to crop an image to a certain size by cutting off the top and bottom of the image. Afterwards, I apply something like the CIMultiplyCompositing filter, to combine the cropped imag...
Intercollegiate asked 17/11, 2011 at 16:5

1

Solved

I have the following function in Core Image Kernel Language and I need something equivalent in Metal Shading Language, but I have problem with destCoord , unpremultiply and premultiply functions. k...
Khichabia asked 7/7, 2020 at 21:26

8

Solved

This is not the same as the countless questions about converting a CMSampleBuffer to a UIImage. I'm simply wondering why I can't convert it like this: CVPixelBufferRef pixelBuffer = (CVPixelBuffer...
Landlocked asked 31/3, 2013 at 5:49

2

Solved

I'm trying to get something akin to a color mask using exclusively CIImage filters. Basically, I'm looking to make all black pixels transparent. I don't mind what color all the non-black pixels en...
Bonanno asked 29/7, 2013 at 9:59

2

Solved

I'm trying to port some CIFilter from this source by using metal shading language for Core Image. I have a palette of color composed by an array of RGB struct and I want to pass them as an argument...
Loosetongued asked 2/9, 2019 at 5:6

3

Solved

I am building a scanner component for an iOS app so far I have the result image cropped and in the correct perspective. Now I need to turn the color image into Black and white "Scanned" document. ...
Nephralgia asked 25/3, 2017 at 0:54

1

I am processing a PHLivePhoto using .frameProcessor to modify each frame. The frames appear to be processed in sequence, which is slow. Can I get PHLivePhotoEditingContext.frameProcessor to take ad...
Background asked 4/10, 2019 at 12:38

0

I have a series of UI Images (made from incoming jpeg Data from server) that I wish to render using MTKView. Problem is it is too slow compared to GLKView. There is lot of buffering and delay when ...
Ga asked 7/9, 2019 at 13:42

9

Solved

As I noticed when CIGaussianBlur is applied to image, image's corners gets blurred so that it looks like being smaller than original. So I figured out that I need to crop it correctly to avoid havi...
Demisec asked 11/10, 2012 at 12:38

8

Solved

According to the documentation it should support blurring, note the "Available in iOS 5.0 and later": CIFilter Class Reference But according to the device, it doesn't: [CIFilter filterNamesInCat...
Goldschmidt asked 16/12, 2011 at 1:14

2

Solved

I use Metal and CADisplayLink to live filter a CIImage and render it into a MTKView. // Starting display link displayLink = CADisplayLink(target: self, selector: #selector(applyAnimatedFilter)) d...
Donegan asked 2/7, 2019 at 14:41

1

I am trying to implement animation in a still image in a user-guided direction, something like this: Original image Expected result For this, I have tried the CIBumpDistortionLinear CIFilter...
Calcaneus asked 14/6, 2019 at 10:23

2

Solved

I want to use Core Image for processing a bunch of CGImage objects and turning them into a QuickTime movie on macOS. The following code demonstrates what's needed, but the output contains a lot of ...
Pteropod asked 7/5, 2019 at 8:30

3

I'm doing some tests with the CIPixellate filter and I have it working but the resulting images vary in size. I suppose that makes sense since I am varying the inputscale but it was not what I was ...
Aspergillosis asked 15/3, 2013 at 5:31

2

Solved

On iOS, can you add more than one CIFilter to a SKEffectsNode? CIFilterGenerator seems like what I want but it isn't available on iOS. I know you can use multiple filters on an image by passing t...
Witkowski asked 6/4, 2019 at 22:5

4

Solved

I'm trying to flip an NSImage created with a NSImageBitmapRep representation. After some digging (Flipping Quicktime preview & capture and Mirroring CIImage/NSImage) I tried two ways via a CIIm...
Dogmatize asked 7/6, 2012 at 17:12

2

Solved

I am working on Video based Application in Swift iOS. Where I am using AVPlayer to play the Video and setting CIFilters on Video using AVVideoComposition. I have to apply Cool and warm tone filter ...
Downhaul asked 15/3, 2019 at 6:47

2

Solved

With every Implementation of Metal based ImageView I'm facing the same problem let targetTexture = currentDrawable?.texture else{ return } Value of type 'MTLDrawable' has no member 'texture' ...
Domino asked 29/1, 2017 at 0:12

0

I have been following the apple's live stream camera editor code to get the hold of live video editing. So far so good, but I need a way out to crop a sample buffer into 4 pieces and then process...
Ashil asked 20/2, 2019 at 18:11

1

Solved

I'm rendering a CIImage to MTKView and the image is smaller than the drawable. let centered = image.transformed(by: CGAffineTransform(translationX: (view.drawableSize.width - image.extent.width) ...
Sherry asked 19/2, 2019 at 19:23

© 2022 - 2024 — McMap. All rights reserved.