Commit 3933ed71 authored by Tobias Due Munk's avatar Tobias Due Munk

Update appendix on vImage

parent aa2266dc
import CoreImage
import GameplayKit
import UIKit
import Accelerate
let appendix11: Effect = { originalImage, depthMap in
return try? TextKernel.apply(
......@@ -49,6 +50,7 @@ private class TextKernel: CIImageProcessorKernel {
let path = CGMutablePath()
// Offset to account for ROI (Region of Interest)
let bounds = CGRect(origin: .init(x: extent.minX - input.region.minX,
y: extent.minY - input.region.minY),
size: extent.size)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment