ciimage Questions
0
So I'm trying to record videos using AVAssetWriter, process each camera frame (e.g.: adding some watermark or text overlays) by creating CIImage from camera buffer ( CVImageBuffer), add some filter...
Hierogram asked 9/10 at 11:3
2
Core Image lets us specify a color space for a CIContext, as in:
let context = CIContext(options: [kCIContextOutputColorSpace: NSNull(),
kCIContextWorkingColorSpace: NSNull()])
Or for a CIImage...
Screw asked 29/10, 2017 at 9:58
1
Solved
I am trying to make some colors of the image transparent. Below are the images that I have.
Lets say that I want to remove the bold red color from the image and have it transparent. I am viewing my...
Toadfish asked 28/10, 2022 at 4:42
5
Solved
I am trying to flip my CIImage Horizontal with :
image = [image imageByApplyingTransform:CGAffineTransformMakeScale(1, -1)];
image = [image imageByApplyingTransform:CGAffineTransformMakeTranslatio...
Aragonite asked 1/5, 2016 at 12:50
1
I am trying to create an imitation of the portrait mode in Apple's native camera.
The problem is, that applying the blur effect using CIImage with respect to depth data, is too slow for the live pr...
Threequarter asked 26/3, 2018 at 13:29
3
Solved
I am trying to use a CIColorKernel or CIBlendKernel with sampler arguments but the program crashes. Here is my shader code which compiles successfully.
extern "C" float4 wipeLinear(coreim...
Chemisorption asked 25/11, 2021 at 9:42
1
I am making an swift video app.
In my app, I need to crop and horizontally flip CVPixelBuffer and return result which type is also CVPixelBuffer.
I tried few things.
First, I used 'CVPixelBuf...
Shopwindow asked 21/3, 2019 at 18:36
1
How to draw into CIImage (or maybe into CVPixelBuffer, but I guess it easier to add text to CIImage)? not to UIImage
I record video (.mp4 file) using AVAssetWriter and CMSampleBuffer (from video, ...
Bronk asked 1/3, 2018 at 11:34
13
Solved
I need to apply a black-and-white filter on a UIImage. I have a view in which there's a photo taken by the user, but I don't have any ideas on transforming the colors of the image.
- (void)viewDid...
Colis asked 15/3, 2014 at 10:20
1
I am trying to create an image by averaging several other images. To achieve this, I first darken each image by a factor equivalent to the number of images I am averaging:
func darkenImage(by mult...
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
11
Solved
The setup is simple.
A ViewController with UIImageView that has an image assigned.
A UIButton that when clicked blurs the image in the UIImageView.
import UIKit
class ViewController: UIVie...
Baillieu asked 15/12, 2016 at 4:39
2
Solved
I am trying to convert a YUV image to CIIMage and ultimately UIImage. I am fairly novice at these and trying to figure out an easy way to do it. From what I have learnt, from iOS6 YUV can be direct...
Hourly asked 4/9, 2014 at 7:30
3
Solved
I am recording filtered video through an iPhone camera, and there is a huge increase in CPU usage when converting a CIImage to a UIImage in real time while recording. My buffer function to make a C...
Gitt asked 24/1, 2019 at 19:36
2
Solved
I'm applying a CIFilter to a portrait image. For some reason, it gets rotated 90 clockwise. How can I fix this? My code is below
var imgOrientation = oImage.imageOrientation
var imgScale = oImage....
2
Solved
I have a class that takes an UIImage, initializes a CIImage with it like so:
workingImage = CIImage.init(image: baseImage!)
Then the image is used to cut out 9 neighbouring squares in a 3x3 patt...
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
0
I want to reshape the face coordinate like showing in the video: https://www.dropbox.com/s/vsttylwgt25szha/IMG_6590.TRIM.MOV?dl=0 (Sorry, unfortunetly the video is about 11 MB in size).
I've just ...
Conference asked 31/12, 2018 at 11:12
2
Solved
I'm working with PhotoKit and have implemented filters users can apply to photos in their Photo Library. I am currently obtaining the image, applying a filter, returning the edited version as a CII...
Syncopated asked 12/1, 2015 at 6:23
3
Solved
I am making image form QR Code by using following code:
func createQRFromString(str: String) -> CIImage? {
let stringData = str.dataUsingEncoding(NSUTF8StringEncoding)
let filter = CIFilter...
4
Solved
extremely new to SceneKit, so just looking for help here:
I have an SCNSphere with a camera at the center of it
I create an SCNMaterial, doubleSided, and assign it to the sphere
Since the camera...
6
Solved
I have been searching for an answer to this question in a few hours now, and I just can't figure it out. I want to add a gaussian blur effect to the image when i press the button "Button". The user...
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
My PHAssetChangeRequest fails consistently even if I do not modify the NSData at all, and just try to reuse it when writing to PHContentEditingOutput's renderedContentURL when the image's orientati...
Semolina asked 3/8, 2017 at 16:56
1
Solved
I am trying to convert a CGImage into a CIImage; however, it is not working.
This line of code:
let personciImage = CIImage(CGImage: imageView.image!.CGImage!)
throws the following error
Amb...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.