cifilter Questions
7
I want to calculate the histogram of a CGImage.
I am using the CIAreaHistogram built-in CoreImage filter.
Justin Mrkva has done something along similar lines. He says:
I get the CIImage for the...
Cluny asked 1/12, 2014 at 21:5
1
This Kodeco tutorial shows how to display an iOS live camera feed in SwiftUI using Combine.
Here are the essential parts doing this (after stripping away non-essential code lines):
class FrameManag...
Cide asked 24/12, 2022 at 13:45
1
Solved
I've searched far and wide and can't find a single example of how to use a CIFilterShape, and what it's good for. Most Apple docs just say it controls the dod of a filter, even the CoreImage Refere...
Oina asked 15/10, 2015 at 18:7
5
I'm using Swift to show content from an AVPlayer in a view's AVPlayerLayer. The associated AVPlayerItem has a videoComposition, and slightly simplified version of the code to create it (without err...
Neom asked 4/2, 2016 at 18:8
3
Solved
Is there any sample code or example for CITemperatureAndTint? I have read its documentation but i need some example to implement it.
Docia asked 13/7, 2012 at 4:45
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
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
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
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
2
I want to apply camera filter while rendering, my code is...
func session(_ session: ARSession, didUpdate frame: ARFrame) {
let image = CIImage(cvPixelBuffer: frame.capturedImage)
var r: CGFloat...
2
Solved
im trying to generate a QR code in my app. The problem is that whenever I do the picture is just an empty square. I stripped down the code to the basics to try and show my problem.
struct ContentV...
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
1
Solved
In the UI of my iOS app, I display a complex hierarchy of CALayers. One of these layers is a AVPlayerLayer that displays a video with CIFilters applied in real time (using AVVideoComposition(asset:...
Piccadilly asked 24/10, 2019 at 10:12
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
Solved
I'm quite new to OpenGL/Metal and I'm trying to understand some fundamental concepts.
Within our app, we are using CIFilter to filter videos. I saw a WWDC video from 2017 explaining that you can wr...
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
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
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
3
Solved
I'm trying to make a QR Code Generator for OS X but i haven't had succession in making a QRCode that can be more colourful that the black and white ones I'm using the CIQRCodeGenerator for the CIIm...
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
5
Solved
After applying an AVVideoComposition to my AVPlayerItem, the filter I apply does work, but the video gets rotated in the AVPlayerLayer.
I know for a fact that the problem is not with the filtered ...
Marker asked 4/7, 2017 at 17:55
1
I am using CIFilter for editing video and images with Swift 3.0.
Its working fine, for whole image or video.But I want to apply filter to only selected area.
I found, It can be done through ROI
...
2
Solved
I am trying to write an helper function that applies a color mask to a given image. My function has to set all opaque pixels of an image to the same color.
Here is what I have so far :
extension...
Snipe asked 7/5, 2018 at 14:28
2
Solved
I have a moving black image on a dark screen, to make it easier to see I would like to add in a white glow to the image. This is my code for the moving image:
Ghost = SKSpriteNode(imageNamed: "Gh...
Powerdive asked 1/11, 2016 at 14:33
1 Next >
© 2022 - 2024 — McMap. All rights reserved.